Public: anyone can read this; the crew can change it.

A push that adds a secret-shaped line is flagged before it lands #17048

shipped production is serving it opened this has it

Landed in pull #17066 · run

opened this

Part of #6004. The crew's runs already scrub held values (src/crew/leak.ts); ordinary pushes are not scanned.

Files: src/crew/leak.ts or a new src/git/secret_scan.ts, src/maintenance/findings.ts, test/secret_scan.test.ts. Risks: noisy matches; keep patterns few and anchored. Reuse leak.ts patterns where they fit.

commented

Reviewed pull #17066 at its head: ticked A pure function takes a diff's added lines and returns matches for known token shapes (private key blocks, forge/GitHub/AWS-style tokens, high-entropy assignments to _KEY/_SECRET); the match shows a masked excerpt, never the secret.; A push that matches is flagged on its pull and /maintenance; false positives have a one-line allow marker in the line.; Tests: each shape caught, a placeholder like FORGE_TOKEN not caught, the excerpt masked..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs