Skip to content

Commit 36e32b1

Browse files
committed
Merge branch '1_13_0_verifier_fix' into 'main'
skip verifier on rc tags See merge request flarenetwork/network/go-flare!7
2 parents d98cd1f + 5f74627 commit 36e32b1

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/build-binary.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff 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: |

0 commit comments

Comments
 (0)