Skip to content

Commit

Permalink
Merge pull request #79 from fluxcd/check-tag
Browse files Browse the repository at this point in the history
Verify signed tag
  • Loading branch information
stefanprodan committed Jun 30, 2023
2 parents cc213e7 + 2c29ce9 commit 6f8e7fe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ jobs:
- name: Verify signed release
if: startsWith(github.ref, 'refs/tags/v')
run: |
if git -P show ${GITHUB_REF_NAME} | grep -q 'END PGP SIGNATURE'; then
echo "PGP signature found for ${GITHUB_REF_NAME} tag."
else
if git tag -v ${GITHUB_REF_NAME} | grep 'no signature found'; then
echo "No PGP signature found for tag ${GITHUB_REF_NAME}. Aborting release process..."
exit 1
fi
Expand Down

0 comments on commit 6f8e7fe

Please sign in to comment.