No committed secrets
SecurityRecommendedHugo ter Doest's proposal
What it checks
The working tree, scanned for committed secrets such as API keys, tokens and private keys. Test paths are left out.
Why it matters
A secret in a public repository can be used by anyone who finds it.
Where it comes from
Hugo ter Doest's proposal. Hugo ter Doest's proposal for the Component Checker sets what a repository must contain: a licence, publiccode.yml, documentation, tests, Docker, Helm, OpenAPI and the other basics.
A measurement for the security criteria: committed secrets are a hardcoded-credentials weakness (CWE-798).
Standard for Public Code. No criterion of the Standard for Public Code matches this one.
Level and version
- Level
- Recommended
- Counts in the rating
- Yes
- Checklist version
- Introduced in 2026.2
- Category
- Security
- Aspect
- Secrets
How it is measured
Measured with gitleaks 8.30.1.
Tools and models says what each tool proves and what it does not.
How to pass
- Remove the secret and revoke it: it is public already.
- Load secrets from the environment or a secret store.
- Mark a known false positive in .gitleaksignore.