mirror of
https://github.com/OpenCTI-Platform/opencti.git
synced 2025-12-22 08:17:08 +00:00
[ci] Automate the verification about signed commit in PRs. (#11714)
This commit is contained in:
19
.github/workflows/check-verified-commit.yml
vendored
Normal file
19
.github/workflows/check-verified-commit.yml
vendored
Normal 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
|
||||
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user