Skip to content

Commit b5c9798

Browse files
committed
Add check for PGP signed tags to release workflow
Signed-off-by: Stefan Prodan <[email protected]>
1 parent 92736d7 commit b5c9798

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)