chore: remove detect-secrets in favor of GitHub secret scanning - #43
Merged
Conversation
Contributor
WalkthroughThis PR removes secret-scanning infrastructure: the "Secret scan" CI job and its dependency in ci-success, the detect-secrets pre-commit hook, the NvidiaApiKeyDetector script, and the .secrets.baseline file. Commitlint pre-commit config gains an explicit config-conventional dependency pin. ChangesSecret scanning removal
Estimated code review effort: 2 (Simple) | ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Comment |
ayushag-nv
approved these changes
Jul 9, 2026
ayushag-nv
left a comment
Contributor
There was a problem hiding this comment.
Looks Good. Thanks for this. It has been causing troubles.
ayushag-nv
enabled auto-merge (squash)
July 9, 2026 16:52
ryan-lempka
disabled auto-merge
July 9, 2026 16:55
Signed-off-by: Ryan Lempka <rlempka@nvidia.com>
ryan-lempka
force-pushed
the
chore/remove-detect-secrets
branch
from
July 9, 2026 17:01
4a070a6 to
c367222
Compare
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Removes the detect-secrets pre-commit hook, its
.secrets.baseline, the custom NVIDIA-key plugin, and the Secret scan CI job. Secret protection moves to GitHub's platform-level scanning: secret scanning alerts and push protection are both enabled on this repo (Settings > Advanced Security).Why
Baseline maintenance scales with repo churn.
.secrets.baselinerecords the line number of each allowlisted example secret (~130 entries acrosstests/, docs, workflows, and Rust source). Any commit that shifts lines in one of those files requires a companion baseline-refresh commit to keep the Secret scan job green; #40 needed two of them. As the repo grows, more files carry allowlisted examples and more edits require a refresh.The entries being tracked are placeholder keys. The baseline's role today is allowlisting the fake credentials used in tests and docs, so the ongoing maintenance mostly serves examples rather than live-secret detection.
Platform scanning intervenes earlier for real tokens. GitHub secret scanning detects real token formats for its supported providers, and push protection rejects a push containing one before it reaches the repository. A CI job necessarily runs after the commit is already pushed, when rotation is required regardless of the check's result. Detections and bypass events are auditable under the repo's Security tab.
Coverage gaps, stated plainly:
nvapi-) do not appear on GitHub's supported patterns list, so removing.hooks/detect_nvidia_api_key.pyremoves the only NVIDIA-specific detection. If we want that back, a baseline-free pattern check (a strictnvapi-regex that placeholder keys don't match) would restore it without the churn above.Changes
.pre-commit-config.yaml: drop the detect-secrets hook.github/workflows/ci.yml: drop the Secret scan job and itsci-successgate entry.secrets.baselineand.hooks/detect_nvidia_api_key.py(the plugin existed only to feed detect-secrets)