Skip to content

build(security): scan commits for secrets - #42

Merged
xgame92 merged 3 commits into
mainfrom
devin/1796380100-secret-scan
Dec 3, 2026
Merged

xgame92 merged 3 commits into
mainfrom
devin/1796380100-secret-scan

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

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.toml copy, 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 six generic-api-key fixture 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 verify passes
  • Tests cover the change (every bug fix has a test that fails without it)

Before the later config-only refreshes, pnpm install installed the hook stub, pnpm verify passed, 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]

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.
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

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.
@xgame92
xgame92 merged commit 966732e into main Dec 3, 2026
7 checks passed
@xgame92
xgame92 deleted the devin/1796380100-secret-scan branch December 3, 2026 21:34
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant