Module 78: Secure Development

Lesson 3 of 5 · 15–25 minutes

Supply chain security

🏠The everyday picture

A restaurant is only as safe as its suppliers. One contaminated ingredient makes every dish dangerous, however clean the kitchen.

📘What it really is

🖱️Try it

Turn on Dependabot alerts and version updates for your CRM (.github/dependabot.yml for npm, Docker and GitHub Actions). Run npm audit and fix what you can. Run trivy image on your API image. List your direct dependencies, and remove any you don't need. Generate an SBOM (npm sbom --sbom-format cyclonedx or Trivy) and store it with your release notes.

✅Quick check

Why should lock files be committed?

Show the answer

So every install uses exactly the tested versions, and changes come only through reviewed updates.

What should you check before adding a new package?

Show the answer

That it's real and spelt correctly, well maintained, widely used, from a reputable source, and actually needed.

← PreviousCode review for security
ProLearners Assist