Repository navigation
build(security): scan commits for secrets - #42
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 secret-scanner rollout to Backup with the same shape as the ops and Track pilot: pinned gitleaks 8.30.1 with a pinned sha256, the shared
.gitleaks.tomlcopy, and an install-time pre-commit hook that does not take over existing hooks.The scanner covers the history reachable from the checked-out commit on pull requests and pushes to
main, including merge diffs separately. No third-party action or repository secret is added.This copy uses the updated shared config from ops#62, sha256
de3baf8bfe1da2212340521c0eff5c041854f6cf0aa2c06613c1804915247727, because Backup's intentional test keys otherwise produce sixgeneric-api-keyfixture findings. That ops change should land first so the checksum again equals the ops file. The config contains no tracked environment-file exception.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.Agents
Deploy notes
No deploy note applies: CI/local-install tooling only, with no migration, setting, repository-format or entrypoint change.
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]