Interview Prep/DevSecOps/Application Security Testing (SAST, DAST, SCA, Secrets)

How do you decide between running scans on every PR versus nightly?

AdvancedConceptApplication Security Testing (SAST, DAST, SCA, Secrets)
Answer

Match scan cost to feedback value. Fast scans (secrets, Semgrep diff, SCA lockfile, IaC lint) run on every PR in under a few minutes. Slower scans (full CodeQL, DAST active scan, full image scan with deep layers, fuzzing) run on merge to main or nightly and open tickets or fail the release gate.

Rule of thumb: if the developer is still in context (within about 10 minutes), put the check on the PR; if not, run it on a schedule and route results through backlog tooling.

All DevSecOps questions Roadmap: Security in the pipeline

More on Application Security Testing (SAST, DAST, SCA, Secrets)