Skip to content

Add commit attribution check - #3

Open
CaiFrazier wants to merge 1 commit into
mainfrom
ci/commit-attribution
Open

CaiFrazier wants to merge 1 commit into
mainfrom
ci/commit-attribution

Conversation

@CaiFrazier

Copy link
Copy Markdown
Owner

This adds a GitHub Actions workflow, Commit attribution, that inspects only new commits.

It runs on every pull request, and on pushes to the default branch (main). For a pull request it checks base.sha..head.sha. For a push it checks before..sha, including the all-zeros before case on a first push.

It fails if a new commit's author or committer name or email matches claude|anthropic (case-insensitive), if a Co-authored-by trailer names Claude or Anthropic, or if the message contains a Generated with Claude Code line. File contents are not scanned, so the patterns in the workflow file do not fail the check.

Making this a required status check is a branch-protection decision and is left for you to set if you want it.

Add a GitHub Actions workflow that inspects only new commits on pull requests and on pushes to the default branch. It fails when a new commit's author, committer, or message trailers match the blocked attribution patterns.

Making this a required status check is a branch-protection decision and is left unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant