Repository navigation
build(security): scan commits for secrets - #27
Merged
Merged
Conversation
Add the pinned secret scanner to CI and install the staged-changes hook during package installation so leaked credentials are caught before they reach the repository history.
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Pick up the shared fixture exceptions so this copy stays byte-identical with the scanner config rolling out in ops.
Keep the shared scanner config byte-identical while removing tracked environment file paths from a comment so rollout checks do not read them as exceptions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Part of SEC-31. Adds the pinned gitleaks workflow, the shared config copy from ops#62, and the install-time pre-commit hook. The scan covers reachable PR/main history, including merge diffs; the hook never overrides existing hooks.
The current shared config copy has sha256
de3baf8bfe1da2212340521c0eff5c041854f6cf0aa2c06613c1804915247727and contains no tracked environment-file exception. ops#62 should land first so the copied config checksum equals the ops file.How it was tested
pnpm verifypassesBefore the later config-only refreshes,
pnpm installinstalled the hook stub,pnpm verifypassed, the staged hook reported no leaks, and the pinned history scan reported no leaks. Hosted CI validates the current head.Safety
Link to Devin session: https://app.devin.ai/sessions/d1893600300c445ba5dc12c870373e42
Open in Devin Desktop: https://app.devin.ai/desktop/session/d1893600300c445ba5dc12c870373e42?variant=devin
Requested by: @[REDACTED SECRET]