Skip to content

fix(ci): let platform-bot co-author trailers pass the attribution guard - #27

Merged
acamarata merged 1 commit into
mainfrom
fix/attribution-allow-bot-coauthors
Aug 15, 2026
Merged

acamarata merged 1 commit into
mainfrom
fix/attribution-allow-bot-coauthors

Conversation

@acamarata

Copy link
Copy Markdown
Contributor

Attribution Guard went red on main after dependabot PRs were squash-merged.

Cause: COMMIT_MSG_REGEX blanket-matched any co-authored-by: trailer, whereas the sibling CONTENT_REGEX correctly requires an AI vendor name after it. GitHub automatically adds Co-authored-by: dependabot[bot] to squash merges — so a dependency bot tripped an AI-attribution policy, making dependabot PRs impossible to squash-merge.

Fix: strip dependabot/github-actions/renovate bot trailers before applying the AI regex. Genuine AI co-author trailers (claude / openai / copilot / anthropic / …) are still caught, and the file-content scan is unchanged.

Verified locally against the exact failing range 2a3ee2bd..b8c0f6f8: now passes.

COMMIT_MSG_REGEX blanket-matched any 'co-authored-by:' trailer, while the
sibling CONTENT_REGEX correctly requires an AI vendor name after it. GitHub adds
'Co-authored-by: dependabot[bot]' to squash merges automatically, so every
dependabot squash-merge tripped an AI-ATTRIBUTION policy and turned main red.

Strip dependabot/github-actions/renovate bot trailers before applying the AI
regex. Genuine AI co-author trailers (claude/openai/copilot/anthropic/...) are
still caught, and the CONTENT_REGEX file scan is untouched.

Verified against the failing range 2a3ee2b..b8c0f6f — now passes.
@acamarata
acamarata merged commit 916175d into main Aug 15, 2026
33 checks passed
@acamarata
acamarata deleted the fix/attribution-allow-bot-coauthors branch August 30, 2026 18:45
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