A SAST tool reports 2,000 findings on a legacy repo the first time you run it. How do you introduce it without freezing delivery?
IntermediateScenarioPipeline Security Scanning
Answer
Situation read → Blocking on 2,000 old findings guarantees the tool gets switched off.
What I'd do →
- Baseline: record current findings as accepted debt (
semgrep cibaseline commit, or CodeQL "new alerts only" on PRs). - Gate only on new findings of High/Critical severity.
- Triage the baseline by exploitability: injection, auth and crypto first, style issues last.
- Create a burn-down target per sprint, owned by the team that owns the code.
- Turn off noisy rules with written justification.
Why → You stop the bleeding first, then pay down debt at a rate the team can sustain.
Interview tip → "Block new, burn down old" is the phrase interviewers like.
More on Pipeline Security Scanning
You are asked to add security to an existing CI pipeline. Where do SAST, SCA, secrets scanning and DAST each go?BeginnerGitleaks flags an AWS access key in a pull request. The developer says it is a test key. What do you do?BeginnerDevelopers fear security scans will slow the pipeline from 6 to 20 minutes. How do you roll them out?BeginnerA developer insists a scanner finding is a false positive. What is your process?BeginnerSCA flags a critical CVE in a transitive dependency and no patched version exists. What are your options?IntermediateDevelopers bypass your pre-commit secret scan with `git commit --no-verify`. How do you close the gap?Intermediate