Fix the TOML syntax in the gitleaks config
The title was written with YAML syntax, so gitleaks failed to load the
config before it reached [extend] or [allowlist]:
FTL unable to load gitleaks config, err: While parsing config: toml:
expected character =
Verified with the pinned binary the Gitea lint workflow uses (v8.30.1):
`gitleaks detect --source=. --config=.gitleaks.toml --redact --verbose
--no-banner` now scans the working tree and all history and reports no
leaks.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5
parent
e1f152ec3e
commit
d2c303e346
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
# in .gitlab-ci.yml) over the working tree *and* the history — a secret that was
|
# in .gitlab-ci.yml) over the working tree *and* the history — a secret that was
|
||||||
# committed and then deleted is still a leaked secret, and the only fix is
|
# committed and then deleted is still a leaked secret, and the only fix is
|
||||||
# rotating it.
|
# rotating it.
|
||||||
title: "config repository secret scan"
|
title = "config repository secret scan"
|
||||||
|
|
||||||
[extend]
|
[extend]
|
||||||
# Start from the upstream rule set rather than reinventing it.
|
# Start from the upstream rule set rather than reinventing it.
|
||||||
|
|||||||
Reference in New Issue
Block a user