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.
More on Application Security Testing (SAST, DAST, SCA, Secrets)
What is SAST and what are its strengths and limits?BeginnerWhat is DAST and how does it differ from SAST?BeginnerWhat is IAST and RASP?IntermediateWhat is SCA and what does it scan?BeginnerHow does a SAST tool find a SQL injection using taint analysis?AdvancedHow do you write a simple Semgrep rule?Intermediate