nachitzu/Docker Hardening Checker

Analyze Dockerfiles and docker-compose files for security bad practices (root user, exposed ports, secrets in ENV, unpinned images, privileged containers, etc.). Emits GitHub Actions annotations and a step summary, and can fail the build on configurable severity.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
pathsPaths to scan. Files, directories, or glob patterns. Multiple values are space-separated. Default: the workspace root.no.
fail-onMinimum severity that causes the action to fail. One of critical|high|medium|low|info. Default: high.nohigh
formatOutput format. text = human-readable, json = machine-readable, sarif = GitHub code scanning upload, github = Actions annotations + $GITHUB_STEP_SUMMARY. Inside an Actions runner the default is github.noauto
outputOptional file path to write the report to. The step summary is always populated when format=github regardless of this setting.no""
ignoreComma-separated list of rule ids to suppress (e.g. "DF-010,DC-011").no""
python-versionPython version to use. Default: 3.11.no3.11
namedescription
totalTotal number of findings.
criticalNumber of critical findings.
highNumber of high findings.
mediumNumber of medium findings.
lowNumber of low findings.
infoNumber of info findings.
exit-codeExit code of the checker (0 = pass, 1 = findings above threshold, 2 = tool error).