Skip to content
oss-kit
GitHubInstall

Registry dependencies resolve through a committed lockfile

Rule
R-SEC-08
Forge scope
GitHub and GitLab
Fixed by
oss-harden

A version range re-resolves on every build, so what CI installs today is not what it installed yesterday. A lockfile records the exact artifact and its hash, which turns a silent substitution into a failed build. It costs a maintainer nothing, because the package manager writes it.

Observable check

the lockfile or fully hashed requirements file the project's package manager produces is committed, records integrity for registry dependencies, and every CI install uses the package manager's current frozen mode so it fails on stale or missing resolution data rather than updating it.

Read the whole standard