Skip to content

Commit 027dbcd

Browse files
authored
automated workflow to check sign commits (#85)
Signed-off-by: Nir Rozenbaum <nrozenba@redhat.com>
1 parent afb6dc2 commit 027dbcd

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Check Signed Commits in PR
2+
3+
on:
4+
pull_request_target:
5+
6+
jobs:
7+
check-signed-commits:
8+
name: Check signed commits in PR
9+
if: |
10+
!startsWith(github.head_ref, 'release-notes/pr-') ||
11+
github.event.pull_request.user.login != 'github-actions[bot]'
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
pull-requests: write # Required to post comments on PRs
16+
steps:
17+
- name: Check signed commits in PR
18+
uses: 1Password/check-signed-commits-action@v1 # Use the action
19+
with:
20+
comment: |
21+
🚨 Unsigned commits detected! Please sign your commits.
22+
23+
For instructions on how to set up GPG/SSH signing and verify your commits, please see [GitHub Documentation](https://docs.github.com/en/authentication/managing-commit-signature-verification).

0 commit comments

Comments
 (0)