Skip to content

Commit

Permalink
Verify signed release
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <[email protected]>
  • Loading branch information
stefanprodan committed Jun 30, 2023
1 parent bb099fa commit a92d965
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 a92d965

Please sign in to comment.