Dev.to Security 🔐 Cybersecurity 👁 0

42 CI/CD Security Workflows I Got Tired of Rewriting — Now They're One PR Away

Every repo needs the same security workflows, and every team rewrites them badly at 11pm before an audit: secret scanning on every push (gitleaks) dependency audit + lockfile freeze (osv-scanner, npm audit gate) SAST o

Every repo needs the same security workflows, and every team rewrites them
badly at 11pm before an audit:

  • secret scanning on every push (gitleaks)
  • dependency audit + lockfile freeze (osv-scanner, npm audit gate)
  • SAST on PR (codeql, semgrep)
  • container image scanning before push (trivy)
  • SBOM generation on release (syft)
  • IaC lint for terraform/cloudformation (checkov, tflint)
  • license policy check, provenance/attestation, pinned actions by SHA...

That list is basically GitHub Actions Workflow Bundle — 42 ready-to-merge
workflow YAMLs, each with sane defaults, permissions blocks (permissions: read-all
style), and comments explaining the knob you'd actually tune. Drop one into
.github/workflows/, change the trigger, done.

First 5 commenters

Comment the workflow you keep re-writing (e.g. "codeql for monorepo") and I'll
reply with the exact YAML from the bundle — first 5 commenters, posted
publicly so everyone benefits.

Disclosure: I made this bundle. Workflows run on your own runners and never
exfiltrate anything — they're plain YAML you can read before merging.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.