security-scan-workflow: four scans from one uses line
It runs a dependency audit, CodeQL, a TruffleHog secret scan and a Trivy container scan from one uses line. For anyone who would otherwise wire those four scanners by hand.
About it
Four security scanners mean four jobs to wire by hand. security-scan-workflow is a reusable GitHub Actions workflow you add with one uses line. Each scan is switched by an input, and SARIF reports stay as artifacts. Limits: CodeQL and Trivy report findings without failing the job, and the secret scan lists only secrets TruffleHog can confirm are live. It needs a GitHub repository with Actions turned on, a Bun lockfile for the dependency audit, and a Dockerfile for the container scan. A Snyk account and a SNYK_TOKEN secret are only for the optional Snyk step. CodeQL needs GitHub Advanced Security except on a public repository or on code under an open source licence. Each scanner finds only what it knows, and a clean run does not mean the code is secure. Door 51 of 100 Doors.