Skip to content

fix(leak-guard): reject malformed denylist hashes - #212

Open
Taylor15200 wants to merge 2 commits into
elementalsouls:mainfrom
Taylor15200:fix/validate-leak-guard-denylist
Open

Taylor15200 wants to merge 2 commits into
elementalsouls:mainfrom
Taylor15200:fix/validate-leak-guard-denylist

Conversation

@Taylor15200

Copy link
Copy Markdown

What does this change?

The leak guard now checks that each denylist entry is a valid SHA-256 digest before scanning. A malformed entry stops the scan with exit code 2 and points to the line to fix without printing its contents.

Type

  • Tooling / scripts / CI

Checklist

  • No client or engagement data. The tests use synthetic data.
  • python3 scripts/lint_skills.py (not run locally; no skill files changed).

Testing

python3 scripts/test_scan_identifiers.py passed on Python 3.12 and 3.13. The new tests cover malformed and unreadable input. The existing staged-file checks still pass.

@Taylor15200
Taylor15200 marked this pull request as ready for review November 22, 2026 22:18

This branch has not been deployed

No deployments
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.

1 participant