Skip to content

Commit

Permalink
Merge pull request #247 from konstruktoid/actions
Browse files Browse the repository at this point in the history
update slsa action
  • Loading branch information
konstruktoid authored Oct 11, 2024
2 parents 663e172 + dd709d0 commit 753588d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/slsa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@ jobs:
hashes: ${{ steps.hash.outputs.hashes }}
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit

- run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
shell: bash

- name: Checkout repository
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # master
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1

- name: Build artifacts
run: |
Expand Down Expand Up @@ -52,6 +57,10 @@ jobs:
upload-assets: ${{ startsWith(github.ref, 'refs/tags/') }}

release:
permissions:
actions: read
id-token: write
contents: write
needs: [build, provenance]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit 753588d

Please sign in to comment.