· Sourceplane engineering · Security · 3 min read
Supply-chain security for teams that ship weekly
Most of the code you run in production was written by someone else. A practical baseline for knowing what you depend on, keeping it current, and making sure what you deploy is what you built.
A typical web service has a few thousand lines of code written by its team and hundreds of thousands written by others: open-source libraries, base images, build tools, CI actions. Each of them can carry a vulnerability, be abandoned, or in the worst case be deliberately compromised. Software supply-chain security is the practice of keeping that dependence under control.
It can sound like a specialist discipline, full of acronyms. For a team that ships every week, it comes down to a handful of habits.
Know what you depend on
You cannot secure what you cannot list.
- Lock files everywhere. Every repository commits a lock file, so builds use exactly the versions that were reviewed.
- An inventory. Generate a software bill of materials (SBOM) as part of the build, so you can answer “are we affected?” in minutes when the next big vulnerability is announced.
- Few, deliberate additions. New dependencies are a decision, reviewed like any other change. A small library that saves an hour of work can cost far more over its lifetime.
Keep it current
Old dependencies are the most common route to a known vulnerability.
- Automated update pull requests, grouped and scheduled so they are reviewable rather than a flood.
- Fast, trusted tests, so an update can be merged with confidence. This is where delivery practice and security practice meet.
- Vulnerability scanning on every change, with a clear rule: critical and high findings in reachable code block the merge; others become tracked work.
Pin what runs in your pipeline
CI is part of the supply chain. A third-party action referenced by a moving tag can change underneath you.
- Pin third-party CI actions and base images to a specific version or digest.
- Review updates to them like any other dependency.
- Give pipelines the minimum permissions they need, and short-lived credentials rather than stored keys. We covered that in CI/CD without long-lived secrets.
Make sure you deploy what you built
The last link is between the build and production.
- Build once, in CI, never on a laptop, and promote the same artifact through every environment.
- Record provenance: which commit, which pipeline run and which inputs produced each artifact.
- Sign artifacts where it matters, and verify signatures at deploy time, so nothing built elsewhere can be slipped into production.
Watch for the obvious
Some of the most damaging incidents come from simple mistakes rather than sophisticated attacks:
- Secrets committed to a repository. Scan every change and block the merge.
- Typosquatted packages, with names one letter away from a popular library. Review new dependency names carefully.
- Abandoned packages that suddenly publish a new version under a new maintainer. Be suspicious of surprise releases.
A baseline in one sprint
For a team starting from little, this is achievable in a couple of weeks:
- Lock files committed in every repository.
- Automated dependency updates, grouped weekly.
- Vulnerability and secret scanning on every pull request, with a blocking rule for the serious findings.
- CI actions and base images pinned.
- An SBOM generated with every build and stored with the artifact.
- Builds only in CI; one artifact promoted through environments.
Signing, provenance verification and stricter policies can follow. The baseline removes most of the everyday risk.
How we help. We set up dependency management, scanning, pinned pipelines and provenance with your team, as part of a wider security baseline. See security and guardrails, or talk to an engineer.