Skip to content

Commit

Permalink
Merge pull request #76 from fluxcd/verify-signed-tag
Browse files Browse the repository at this point in the history
Add check for PGP signed tags to release workflow
  • Loading branch information
stefanprodan authored Jun 30, 2023
2 parents 92736d7 + b5c9798 commit 7c3a1cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ jobs:
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Setup Kustomize
uses: fluxcd/pkg/actions/kustomize@main
- name: Verify signed release
if: startsWith(github.ref, 'refs/tags/v')
run: |
git -P show ${{ github.event.inputs.tag }} | grep -q 'PGP SIGNATURE' || \
{ echo "No PGP signature found for tag ${{ github.event.inputs.tag }}. Aborting release process..."; exit 1; }
- name: Prepare
id: prep
run: |
Expand Down

0 comments on commit 7c3a1cd

Please sign in to comment.