How do you evaluate whether a new open-source dependency is safe enough to adopt?
IntermediateScenarioSupply Chain Security
Answer
Situation read → Popularity is not safety. Look at project health and security practices.
What I'd do →
- Run OpenSSF Scorecard:
scorecard --repo=github.com/org/project. - Check maintainers, release cadence, open security advisories and bus factor.
- Review transitive dependency count and install scripts.
- Check licence compatibility.
- Wrap the library behind your own interface so you can replace it.
- Record the decision in an ADR.
Why → Cheap vetting up front is better than emergency removal later.
Interview tip → Mention Scorecard checks such as branch protection, signed releases and pinned dependencies.
More on Supply Chain Security
What is an SBOM, and at which point in the pipeline do you generate it?BeginnerA customer asks for an SBOM for your product. What do you give them?BeginnerHow do you sign container images in GitHub Actions without managing private keys?IntermediateYou signed images in CI. How do you make sure the cluster only runs signed images?IntermediateLeadership wants "SLSA compliance". What do you propose?IntermediateWhat is typosquatting and how do you protect developers from it?Beginner