Skip to content

Commit

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

0 comments on commit cc213e7

Please sign in to comment.