Skip to content

Commit

Permalink
Merge pull request #850 from google/provenance
Browse files Browse the repository at this point in the history
ci: Generate provenance on a tag only.
  • Loading branch information
jaqx0r committed Apr 26, 2024
2 parents 1474283 + 17426aa commit 7a28fc3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
binary-provenance:
needs: [goreleaser]
if: ${{ startsWith(github.ref, 'refs/tags/') }}
permissions:
actions: read # To read the workflow path.
id-token: write # To sign the provenance.
Expand Down Expand Up @@ -106,6 +107,7 @@ jobs:
image-provenance:
needs: [goreleaser]
if: ${{ startsWith(github.ref, 'refs/tags/') }}
permissions:
actions: read
id-token: write
Expand Down

0 comments on commit 7a28fc3

Please sign in to comment.