Skip to content

CI: block Co-authored-by Claude/Anthropic trailers on PRs#83

Merged
AgentSeal merged 1 commit into
mainfrom
chore/block-claude-coauthor-prs
Apr 18, 2026
Merged

CI: block Co-authored-by Claude/Anthropic trailers on PRs#83
AgentSeal merged 1 commit into
mainfrom
chore/block-claude-coauthor-prs

Conversation

@AgentSeal

Copy link
Copy Markdown
Collaborator

Summary

  • Adds .github/workflows/block-claude-coauthor.yml which scans every PR commit for Co-authored-by: ... claude ... or ... anthropic ... trailers and fails the PR if found.
  • Surfaces a specific, actionable remediation message (interactive rebase + reword + force-push-with-lease).
  • Scans only commits introduced by the PR (base.sha..head.sha), so existing history is untouched. The 3 historical commits with Claude co-author trailers stay as-is.

Test plan

Self-validation before pushing:

  • Regex caught all 3 known bad commits in history (ba4542a, 67c504a, 09139b1)
  • Regex did not false-positive on 5 recent clean commits
  • After merge, first PR opened against main runs the check and shows the green badge or the blocking error message appropriately

New GitHub Actions check that scans every PR commit for
`Co-authored-by: ... claude ...` or `... anthropic ...` trailers and
fails the PR with a clear remediation message if found. Contributors
can still use AI tools; the trailer attribution must be removed before
the PR is eligible to merge, consistent with the project contributor
guidelines.

The workflow scans only commits introduced by the PR
(base.sha..head.sha), so existing history is untouched.
@AgentSeal AgentSeal merged commit 8c87947 into main Apr 18, 2026
2 of 3 checks passed
@AgentSeal AgentSeal deleted the chore/block-claude-coauthor-prs branch April 18, 2026 16:04
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.

2 participants