Skip to content

v0.1.4 – Final Docker publishing fix (GHCR)

Latest

Choose a tag to compare

@DevSpecOps DevSpecOps released this 13 Jun 18:52
· 1 commit to main since this release

What's Changed

  • Fixed GitHub Container Registry permissions (added packages: write)
  • Corrected Docker image tags to use lowercase repository owner (devspecops)
  • Resolved workflow syntax error with | operator
  • Docker image now successfully builds and pushes to ghcr.io/devspecops/k8s-security-linter

🚀 Installation & Usage

Docker

docker pull ghcr.io/devspecops/k8s-security-linter:latest
docker run --rm -v $(pwd):/workspace ghcr.io/devspecops/k8s-security-linter --path /workspace

GitHub Action

  • uses: DevSpecOps/k8s-security-linter@v0.1.4
    with:
    path: './deploy'

Pre-commit hook

Add to .pre-commit-config.yaml:

📦 What's inside

5 built‑in security rules (privileged, runAsNonRoot, readOnlyRootFilesystem, memory limits, latest tag)

Rego (OPA) engine for custom policies

Support for Pod, Deployment, StatefulSet, DaemonSet, Job, CronJob

JSON output, exit code 1 on violation

Prometheus metrics (optional)

Donation page with BTC/ETH QR codes

🙏 Support

If this tool helps you, consider donating.