Skip to content

Redact internal emails from tests and add a CI guard - #14

Merged
WalBeh merged 1 commit into
mainfrom
redact-crate-emails
Jul 27, 2026
Merged

Redact internal emails from tests and add a CI guard#14
WalBeh merged 1 commit into
mainfrom
redact-crate-emails

Conversation

@WalBeh

@WalBeh WalBeh commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Summary

The public repo contained real @crate.io email addresses in test fixtures. This replaces them with RFC 2606 example.com placeholders and adds a CI guard so they can't reappear.

  • tests/test_excel_export.py: two real addresses → engineer-a@example.com / engineer-b@example.com; the x@crate.io placeholder → x@example.com.
  • New workflow .github/workflows/no-internal-emails.yml: fails the build if any tracked file (outside .github/) contains an @crate.io address.

Companion cleanup already applied outside this PR: the PR #13 description was edited to anonymize the four engineer addresses, and the coverage-gap test fixtures (tests/test_coverage_gaps.py, on the #13 branch) were switched to example.com. Not addressed here (by decision): the addresses remaining in existing git history — no history rewrite.

Testing

  • uv run --extra test pytest43 passed.
  • Guard simulated locally (git grep '@crate.io' -- . ':!.github/') → no matches.

🤖 Generated with Claude Code

The public repo had real @crate.io addresses in test fixtures
(tests/test_excel_export.py: two real addresses plus an x@crate.io
placeholder). Replace them with RFC 2606 example.com placeholders.

Add a CI workflow that fails if any tracked file (outside .github/) contains an
@crate.io address, so real addresses can't reappear in test data or fixtures.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@WalBeh
WalBeh merged commit b28eef0 into main Jul 27, 2026
2 checks passed
@WalBeh
WalBeh deleted the redact-crate-emails branch July 27, 2026 16:09
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