Skip to content

Commit 759cd8c

Browse files
ci: add signed commit check (#1244)
Add new signed commits in PR on `.github/workflow/build.yml` #1136 with comments. --------- Signed-off-by: 7h3-3mp7y-m4n <emailtorash@gmail.com>
1 parent 6831e5c commit 759cd8c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ on:
1919

2020
permissions:
2121
contents: read
22+
pull-requests: write
2223

2324
jobs:
2425
build:
@@ -30,6 +31,11 @@ jobs:
3031
go-version: ['1.24']
3132
fail-fast: true
3233
steps:
34+
- name: Check signed commits in PR
35+
if: github.event_name == 'pull_request'
36+
uses: 1Password/check-signed-commits-action@ed2885f3ed2577a4f5d3c3fe895432a557d23d52 #v1.2.0
37+
with:
38+
comment: One or more commits in your pull request are not signed. The Notary Project requires all commits to be signed. Please sign your commits by following the [guide](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits). Thank you!
3339
- name: Set up Go ${{ matrix.go-version }}
3440
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
3541
with:

0 commit comments

Comments
 (0)