You need to scan Infrastructure-as-Code in the pipeline for misconfigurations.
BeginnerScenarioSecrets, Supply Chain and DORA
Answer
Situation read → Shift-left for IaC.
What I'd do →
- Run
checkov -d .ortrivy config .on every PR andconftest test plan.jsonfor custom policy. - Fail on high severity and allow documented suppressions.
- Show results in PR annotations or SARIF.
Why → Catching an open S3 bucket in a PR is cheaper than in production.
Interview tip → Policy as code with OPA.
More on Secrets, Supply Chain and DORA
A developer committed an AWS key to a public repo. Walk through your response.BeginnerHow do you stop secrets from being committed in the first place?IntermediateThe pipeline needs access to 15 different secrets across environments. How do you manage them?IntermediateExplain SLSA and how you would raise a pipeline's level.AdvancedHow do you verify only signed images run in Kubernetes?AdvancedA popular npm package your build uses is reported as compromised. What do you do?Advanced