cr0hn/Dockerfile Security Scan

Scan Dockerfiles for security issues, misconfigurations, and exposed credentials

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jan 29, 2026
License
BSD

Pinned Snippet

workflow.ymlSHA-pinned
uses: cr0hn/dockerfile-security@1092e9874d3a78476bb1e10d7754a7b5685a001e # v0.2.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
dockerfilePath to Dockerfile to analyzenoDockerfile
categoriesRule categories to run: all, core, credentials, security, packages, configuration (comma-separated)noall
ignore-rulesComma-separated rule IDs to ignore (e.g., core-001,cred-006)no""
ignore-filePath to file with rule IDs to ignore (one per line)no""
custom-rulesPath to custom rules YAML file or URLno""
output-formatOutput format: table, jsonnotable
output-filePath to save output file (JSON format)no""
fail-on-issuesExit with code 1 if issues are found (for CI/CD)notrue
quietQuiet mode (suppress stdout output)nofalse
versionVersion of dockerfile-sec to use (e.g., v0.2.0, latest)nolatest
namedescription
issues-foundNumber of security issues found
exit-codeExit code of the scan (0=success, 1=issues found)