Interview Prep/CI/CD/Secrets, Supply Chain and DORA

A popular npm package your build uses is reported as compromised. What do you do?

AdvancedScenarioSecrets, Supply Chain and DORA
Answer

Situation read → Supply-chain incident.

What I'd do →

  1. Find affected builds: search lockfiles and SBOMs for the package and version.
  2. Pin or override to a safe version, block the bad version in Nexus, and rebuild.
  3. If it ran in CI, treat that environment's secrets as exposed and rotate.
  4. Check install scripts and review recent network egress.

Why → Installing a package executes code in CI with its secrets.

Interview tip → Mention npm ci --ignore-scripts and cooldown windows for new versions.

All CI/CD questions

More on Secrets, Supply Chain and DORA