@secretlint/secretlint-rule-docker
v12.3.1
Published
A secretlint rule for Docker.
Readme
@secretlint/secretlint-rule-docker
A secretlint rule for Docker Personal Access Tokens.
Detects Docker Personal Access Tokens (PATs) that use the dckr_pat_ prefix.
Install
Install with npm:
npm install @secretlint/secretlint-rule-dockerMessageIDs
DOCKER_PERSONAL_ACCESS_TOKEN
found Docker Personal Access Token: {{TOKEN}}
Detects Docker PATs with the format dckr_pat_ followed by 27 alphanumeric, underscore, or hyphen characters.
Options
allows: string[]- Allows a list of RegExp-like String
References
- Docker Access Tokens documentation
- GitHub Secret Scanning: supported patterns
- TruffleHog dockerhub v2 detector
Changelog
See Releases page.
Running tests
Install devDependencies and Run npm test:
npm testContributing
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
License
MIT © azu
