Skip to content

Commit 7a28fc3

Browse files
authored
Merge pull request #850 from google/provenance
ci: Generate provenance on a tag only.
2 parents 1474283 + 17426aa commit 7a28fc3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
6767
binary-provenance:
6868
needs: [goreleaser]
69+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
6970
permissions:
7071
actions: read # To read the workflow path.
7172
id-token: write # To sign the provenance.
@@ -106,6 +107,7 @@ jobs:
106107
107108
image-provenance:
108109
needs: [goreleaser]
110+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
109111
permissions:
110112
actions: read
111113
id-token: write

0 commit comments

Comments
 (0)