Skip to content

ci: add AI direct commit attribution check workflow#155

Open
dev4unet wants to merge 1 commit into
m-cmp:mainfrom
MZC-CSC:propose/ai-attribution-check-workflow
Open

ci: add AI direct commit attribution check workflow#155
dev4unet wants to merge 1 commit into
m-cmp:mainfrom
MZC-CSC:propose/ai-attribution-check-workflow

Conversation

@dev4unet

Copy link
Copy Markdown
Member

Summary

This PR proposes a GitHub Actions workflow that blocks pull requests containing AI attribution trailers in commit messages and AI tool emails in author/committer fields from being merged into protected branches.

Following the community proposal from 2026-05-08 (suggesting that commits and pull requests should be authored by humans rather than AI tools, since AI-attributed commits may have unclear implications under DCO/Sign-off/CLA frameworks until the project policy is finalized), this workflow:

  • Scans commits for AI attribution trailers and AI tool emails in both commit messages and author/committer fields.
  • Fails the status check on a match and posts a PR comment explaining the policy intent and the required fix steps.
  • Runs on pull_request and push to protected branches.

Verified

This workflow has been applied to MZC-CSC's fork develop branch and its blocking behavior verified.

Notes

  • Repository administrators can additionally enforce this check via Branch Protection rules.

Canonical source: https://github.com/MZC-CSC/cmig-workflow/blob/main/conf/workflow-templates/no-ai-trace.yml

Add a GitHub Actions workflow that blocks pull requests containing AI attribution trailers in commit messages and AI tool emails in author/committer fields from being merged into protected branches.

The workflow runs on pull_request and push events. On detection it fails the status check and posts a failure comment explaining the policy intent (DCO/Sign-off/CLA implications, the 2026-05-08 community proposal) and the required fix steps (amend or interactive rebase).

Canonical source: https://github.com/MZC-CSC/cmig-workflow/blob/main/conf/workflow-templates/no-ai-trace.yml
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