Skip to content

Spell the scanner keys the way ggshield reads them - #30

Merged
imanimanyara merged 1 commit into
mainfrom
fix/gitguardian-key-spelling
Nov 7, 2026
Merged

imanimanyara merged 1 commit into
mainfrom
fix/gitguardian-key-spelling

Conversation

@imanimanyara

Copy link
Copy Markdown
Member

Summary

This file carried ignored-matches and show-secrets. ggshield reads ignored_matches and show_secrets — a hyphenated key is not an alias. It parses as valid YAML, is simply not a key ggshield looks for, and the exemption it describes never applies, with no warning, because an unknown key is not an error.

So the six placeholder exemptions added in #10 have been inert since 2026-09-17.

Why nothing surfaced it

envkit_canary() keeps new commits off the SOMETHING_PASSWORD=<literal> shape the detector matches, so the exemptions were never the thing holding the scan green. A dead exemption and a working one look identical from the outside.

The estate-wide pass in #23 converted ignored-paths to ignored_paths here and in 26 other configs, but could not know about the two keys only this file has. Measured across both in-scope orgs, this was the last hyphenated key in either — 27 configs use the underscored spelling.

How the spelling was settled

GitGuardian's own configuration docs and ggshield's .gitguardian.example.yml both use underscores throughout (ignored_paths, ignored_matches, show_secrets, ignored_detectors). No hyphenated alias is documented.

Also in this change

A note in the file recording that the spelling is underscored and silently so, with the dates it was wrong, so the next reader does not tidy it back. The ignored_paths entry added in #23 gets one line saying why a path glob is right for tests/Fixtures/** specifically — generated fixture data, no literal to name.

No code changes; laranail-pint --test passes.

This file carried `ignored-matches` and `show-secrets`. ggshield reads
`ignored_matches` and `show_secrets`; a hyphenated key is not an alias. It
parses as valid YAML, is simply not a key ggshield looks for, and the exemption
it describes never applies — with no warning, because an unknown key is not an
error.

So all six placeholder exemptions added in #10 have been inert since
2026-09-17. Nothing surfaced it: the envkit_canary() change keeps new commits
off the assignment-line shape the detector matches, so the exemptions were
never the thing holding the scan green.

The estate-wide pass in #23 converted `ignored-paths` to `ignored_paths` here
and in 26 other configs, but could not know about the two keys only this file
has. This file was the last hyphenated one in either org.

Canonical spelling confirmed against GitGuardian's own configuration docs and
ggshield's `.gitguardian.example.yml`, both of which use underscores
throughout. The trap is recorded in the file so the next reader does not
"tidy" it back.
Copilot AI balanced review requested due to automatic review settings November 7, 2026 09:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@imanimanyara
imanimanyara merged commit 7a42c0b into main Nov 7, 2026
4 checks passed
@imanimanyara
imanimanyara deleted the fix/gitguardian-key-spelling branch November 7, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants