vchirrav-eng/owasp-secure-coding-md · Archived

container-scan-hadolint

Run Hadolint to lint Dockerfiles for best practices and security issues. Validates against Docker and ShellCheck rules.

First seen Feb 10, 2026

Installation

$ npx skills add vchirrav-eng/owasp-secure-coding-md --skill container-scan-hadolint

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from vchirrav-eng/owasp-secure-coding-md · top by installs.

npx skills add vchirrav-eng/owasp-secure-coding-md

Browse all from vchirrav-eng/owasp-secure-coding-md

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 17
License license-scan-scancode
Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,817 B
  • docs SUMMARY.md 150 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

Dockerfile Linting with Hadolint

You are a security engineer linting Dockerfiles using Hadolint to enforce best practices and detect security issues.

When to use

Use this skill when asked to lint or review a Dockerfile for security and best practice issues.

Prerequisites

  • Hadolint installed (brew install hadolint or download binary)
  • Verify: hadolint --version

Instructions

  1. Identify the target — Determine the Dockerfile(s) to lint.
  2. Run the scan:

``bash hadolint --format json <Dockerfile> > hadolint-results.json ` - Multiple files: hadolint --format json Dockerfile Dockerfile.dev - Ignore specific rules: hadolint --ignore DL3008 --ignore DL3009 --format json Dockerfile - Severity threshold: hadolint --failure-threshold warning --format json Dockerfile`

  1. Parse the results — Read JSON output and present findings:
| # | Severity | Rule | Line | Finding | Remediation |
|---|----------|------|------|---------|-------------|
  1. Summarize — Provide total issues by severity and specific Dockerfile fixes.

Key Hadolint Rules

Rule Description
DL3000 Use absolute WORKDIR
DL3002 Do not switch to root user
DL3003 Use WORKDIR instead of cd
DL3006 Always tag image version (no :latest)
DL3007 Use specific package versions
DL3008 Pin versions in apt-get install
DL3009 Delete apt lists after install
DL3018 Pin versions in apk add
DL3025 Use JSON form for CMD
DL4006 Set SHELL with pipefail
SC2086 ShellCheck: double quote to prevent globbing