Sign inSign up

ogulcanaydogan/iac-scanner

By ogulcanaydogan

•Updated 7 months ago

Infrastructure as Code security scanner (Terraform, CloudFormation, K8s)

Image
0

1.2K

ogulcanaydogan/iac-scanner repository overview

⁠IaC Scanner

Security scanner for Infrastructure as Code. Scans Terraform, CloudFormation, Kubernetes manifests, Dockerfiles, and Helm charts.

⁠Quick Start

docker run -v $(pwd):/code ogulcanaydogan/iac-scanner

⁠Features

  • Scans Terraform, CloudFormation, Kubernetes, Dockerfiles, Helm
  • Multiple output formats (CLI, JSON, SARIF, JUnit XML)
  • Configurable severity thresholds
  • Skip specific checks
  • CI/CD friendly (non-zero exit on findings)

⁠Environment Variables

VariableDescriptionDefault
SCAN_DIRDirectory to scan/code
OUTPUT_FORMATOutput format (cli/json/sarif/junitxml)cli
OUTPUT_FILEWrite output to file-
SEVERITYMinimum severity (LOW/MEDIUM/HIGH/CRITICAL)LOW
SKIP_CHECKSComma-separated check IDs to skip-
FRAMEWORKFramework (terraform/cloudformation/kubernetes/dockerfile/all)all
COMPACTCompact outputfalse

⁠Docker Compose Example

services:
  scan:
    image: ogulcanaydogan/iac-scanner
    volumes:
      - ./terraform:/code
    environment:
      - FRAMEWORK=terraform
      - SEVERITY=MEDIUM
      - OUTPUT_FORMAT=json
      - OUTPUT_FILE=/code/scan-results.json

⁠CI/CD Usage

# GitHub Actions
- name: IaC Security Scan
  run: |
    docker run --rm -v ${{ github.workspace }}:/code \
      -e SEVERITY=HIGH \
      -e OUTPUT_FORMAT=sarif \
      ogulcanaydogan/iac-scanner

⁠License

MIT

Tag summary

Content type

Image

Digest

sha256:189693007…

Size

142 MB

Last updated

7 months ago

docker pull ogulcanaydogan/iac-scanner