Skip to content

Commit

Permalink
ci: add a workflow to check if commits in pull requests are verified (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke authored Dec 28, 2024
1 parent 3a9897c commit 97e2027
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/check-commit-signing.yaml
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)

0 comments on commit 97e2027

Please sign in to comment.