Skip to content

security(privacy-check): restrict C3 commit emails to noreply, bots, and web-flow committer - #3256

Merged
jparker2006 merged 1 commit into
mainfrom
security/noreply-emails
Nov 25, 2026
Merged

jparker2006 merged 1 commit into
mainfrom
security/noreply-emails

Conversation

@jparker2006

Copy link
Copy Markdown
Member

Summary

  • Restrict C3 commit email validation in tools/privacy-check/check.py so noreply@github.com is allowed only on the committer field (GitHub web-flow / merge-queue commits) and refused on author.
  • Allow GitHub bot noreply addresses (<n>+<name>[bot]@users.noreply.github.com) on author and committer.
  • Keep refusal output free of email addresses (C3 commit-N-author:1 / C3 commit-N-committer:1) and keep range scanning scoped to the pushed / PR commit range (base..head).
  • Add synthetic unit and pre-push hook tests covering personal author/committer refusal, non-leakage of email addresses, noreply and bot addresses, web-flow committer allowance, and pre-base history exclusion.
  • Document the rule in tools/privacy-check/README.md.

Verification

  • python3 -I tools/privacy-check/test_check.py (48 tests, OK)
  • sh .githooks/test.sh --fixtures-only (OK)
  • python3 -I tools/privacy-check/check.py --repo . --git-tree HEAD --base origin/main --head HEAD (OK)
  • python3 -I tools/comment-check/check.py diff --base origin/main (OK)
  • python3 -I tools/line-budget/check.py --base origin/main --merge HEAD --description-file /dev/null (OK)

Built with Cloudroom

@jparker2006 jparker2006 added the no-changelog Infra, docs or tests: no product changelog; reviewer checks the reason label Nov 25, 2026
@jparker2006

Copy link
Copy Markdown
Member Author

Review at 77528b1: APPROVE

@jparker2006
jparker2006 added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 253d3fa Nov 25, 2026
11 of 12 checks passed
@jparker2006
jparker2006 deleted the security/noreply-emails branch November 25, 2026 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Infra, docs or tests: no product changelog; reviewer checks the reason

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant