File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,11 +80,15 @@ jobs:
8080
8181 - name : Verify SLSA provenance
8282 run : |
83- slsa-verifier verify-artifact \
84- ${{ env.AVALANCHEGO_BINARY }} \
85- --provenance-path ${{ env.SLSA_PROVENANCE }} \
86- --source-uri github.com/${{ github.repository }} \
87- --builder-id https://github.com/${{ github.repository }}/.github/workflows/build-go-slsa3.yaml@refs/tags/${{ github.ref_name }}
83+ if [[ "${{ github.ref_name }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
84+ slsa-verifier verify-artifact \
85+ ${{ env.AVALANCHEGO_BINARY }} \
86+ --provenance-path ${{ env.SLSA_PROVENANCE }} \
87+ --source-uri github.com/${{ github.repository }} \
88+ --builder-id https://github.com/${{ github.repository }}/.github/workflows/build-go-slsa3.yaml@refs/tags/${{ github.ref_name }}
89+ else
90+ echo "Skipping SLSA verification for non-release tag: ${{ github.ref_name }}"
91+ fi
8892
8993 - name : Package release
9094 run : |
You can’t perform that action at this time.
0 commit comments