Skip to content

Commit 7c3a1cd

Browse files
authored
Merge pull request #76 from fluxcd/verify-signed-tag
Add check for PGP signed tags to release workflow
2 parents 92736d7 + b5c9798 commit 7c3a1cd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ jobs:
3333
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
3434
- name: Setup Kustomize
3535
uses: fluxcd/pkg/actions/kustomize@main
36+
- name: Verify signed release
37+
if: startsWith(github.ref, 'refs/tags/v')
38+
run: |
39+
git -P show ${{ github.event.inputs.tag }} | grep -q 'PGP SIGNATURE' || \
40+
{ echo "No PGP signature found for tag ${{ github.event.inputs.tag }}. Aborting release process..."; exit 1; }
3641
- name: Prepare
3742
id: prep
3843
run: |

0 commit comments

Comments
 (0)