-
-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add a workflow to check if commits in pull requests are verified (#…
- Loading branch information
1 parent
3a9897c
commit 97e2027
Showing
1 changed file
with
2 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,14 @@ | ||
--- | ||
name: Check if commits are signed | ||
name: Check if all commits are signed | ||
on: | ||
pull_request_target: | ||
branches: [main] | ||
concurrency: | ||
group: ${{ github.workflow }}--${{ github.head_ref }} # github.ref is unavailable in case of pull_request_target | ||
cancel-in-progress: true | ||
permissions: {} | ||
jobs: | ||
check-commit-signing: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
uses: suzuki-shunsuke/check-commit-signing-workflow/.github/workflows/check.yaml@547eee345f56310a656f271ec5eaa900af46b0fb # v0.1.0 | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
steps: | ||
- name: Check signed commits in PR | ||
uses: 1Password/check-signed-commits-action@ed2885f3ed2577a4f5d3c3fe895432a557d23d52 # v1.2.0 | ||
with: | ||
comment: | | ||
# :x: All commits must be signed | ||
[workflow](${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}) | ||
[All commits of pull requests must be signed. Please see the document.](https://github.com/suzuki-shunsuke/oss-contribution-guide/blob/main/docs/commit-signing.md) |