fix: repair .secrets.baseline (stray uv line breaks detect-secrets hook)#4
Merged
Conversation
The baseline was generated with a redirect like
`uv run detect-secrets scan > .secrets.baseline`, which captured uv's
"Installed 7 packages in 5ms" message as line 1 — making the file invalid
JSON. detect-secrets then fails with "Unable to read baseline", so the
detect-secrets pre-commit hook errors on every run (blocking commits for
anyone with hooks installed).
Remove the spurious first line; the remainder is a valid v1.5.0 baseline
(results: {}). Verified `pre-commit run` now passes detect-secrets.
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.
Problem
.secrets.baselinehas a stray first line —Installed 7 packages in 5ms— captured fromuvwhen the baseline was generated via a redirect (uv run detect-secrets scan > .secrets.baseline). That makes the file invalid JSON, sodetect-secretsfails with "Unable to read baseline" and thedetect-secretspre-commit hook errors on every run. Anyone who runspre-commit installthen can't commit (without--no-verify).Fix
Remove the spurious first line. The remainder is a valid v1.5.0 baseline (
results: {}). One-line deletion.Verification
The commit on this branch ran through the hook itself — detect-secrets passed.