Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DevSecOps lab: SAST/SCA/DAST/IaC gates on GitHub Actions + local labs (WAF, authenticated scans). SARIF to Code scanning. PRs fail on High/Critical by policy.

Notifications You must be signed in to change notification settings

unclehacka/WebAppSec

Repository files navigation

WebAppSec — DevSecOps Lab

Security Gates

A small, reproducible lab that gates PRs with SAST/SCA/DAST/IaC on GitHub Actions. PRs fail on High/Critical; SARIF goes to Security → Code scanning.


CI

  • SAST: Semgrep (p/owasp-top-ten + ./semgrep.yml) → semgrep.sarif
  • Secrets: Gitleaks (PR diff or full repo) → gitleaks.sarif
  • SCA (filesystem): Trivy FS — fails on HIGH,CRITICALtrivy-fs.sarif
  • SBOM: Syft → JSON SBOM.
  • SCA (SBOM): Grype on SBOM — fails on high.
  • IaC: tfsec (Terraform) and Checkov (Terraform/K8s/CFN) → checkov.sarif
  • DAST: OWASP ZAP Baseline (Docker) vs http://waf:8080, rules from .zap/rules.conf
  • GitHub Pages - Latest baseline report HTML.
  • Triggers: pull_request, push to main, nightly schedule, manual.

Fail policy

  • Semgrep: --severity ERROR --error.
  • Gitleaks: exit-code=2.
  • Trivy FS: --severity HIGH,CRITICAL --exit-code 1.
  • Grype: --fail-on high.
  • tfsec & Checkov: hard-fail.
  • ZAP Baseline: FAIL with rules .zap/rules.conf;

About

DevSecOps lab: SAST/SCA/DAST/IaC gates on GitHub Actions + local labs (WAF, authenticated scans). SARIF to Code scanning. PRs fail on High/Critical by policy.

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •