[ci] Automate the verification about signed commit in PRs. (#11714)

This commit is contained in:
A. Jard
2025-07-18 17:24:54 +02:00
committed by GitHub
parent ccd427ce56
commit 843e8cfb79
2 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
name: Check signed commits in PR
on: [pull_request,pull_request_target]
jobs:
check-signed-commits:
name: Check signed commits in PR
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Information about how to sign commits see https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits
# "with comment" below does not work for forks.
run: |
echo "If you need to sign commits, Please see https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits"
- name: Check signed commits in PR on fail see above information.
uses: 1Password/check-signed-commits-action@v1
with:
comment: |
Thank you for your contribution, but we need you to sign your commits. Please see https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits

View File

@@ -54,6 +54,8 @@ For general suggestions or questions about the project or the documentation, you
* worker
* doc
* All commit must be signed, if you need to configure your git environement please see [Github documentation on signed commit][https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits]
### How can you get in touch for other questions?
If you need support or you wish to engage a discussion about the OpenCTI platform, feel free to join us on our [Slack channel](https://community.filigran.io). You can also send us an [email](mailto:contact@opencti.io).