Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/actions/verify-signed-commit-authors/action.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
name: Verify Signed Commit Authors
description: Verify that every pull request commit is SSH-signed by an allowed key.
description: Verify that pull request commits or specified commit ranges are SSH-signed by an allowed key.

inputs:
enforce:
description: Whether signature verification failures should fail the workflow.
default: 'true'
required: false
github-token:
description: Token with contents:read access to fetch pull request commits.
required: true
description: Token with contents:read access to fetch pull request commits, unshallow repositories, or fetch missing commits.
default: ${{ github.token }}
Comment thread
Copilot marked this conversation as resolved.
required: false
head-sha:
description: Commit SHA to verify when not running on a pull request.
required: false
base-ref:
description: Base branch or commit ref to compare against (defaults to origin/main).
default: 'origin/main'
required: false

runs:
using: composite
Expand All @@ -19,4 +27,6 @@ runs:
GITHUB_TOKEN: ${{ inputs.github-token }}
SIGNED_COMMIT_ACTION_PATH: ${{ github.action_path }}
SIGNED_COMMIT_ENFORCE: ${{ inputs.enforce }}
SIGNED_COMMIT_HEAD_SHA: ${{ inputs.head-sha }}
SIGNED_COMMIT_BASE_REF: ${{ inputs.base-ref }}
run: node "$SIGNED_COMMIT_ACTION_PATH/verify-signed-commit-authors.mjs"
Loading
Loading