GitHub
TMA-GITHUB-3.1.7
Ensure dependencies are pinned to a specific, verified version
MediumLevel 1Manual reviewgithub
Description
Pin dependencies to a specific version. Avoid using the "latest" tag or broad version. When using a wildcard version of a package, or the "latest" tag, the risk of encountering a new, potentially malicious package increases. The "latest" tag pulls the last package pushed to the registry. Reported as a manual review item: no reliable read-only gh api check exists for this control.
How it is checked
Audit method: Manual review
This recommendation cannot be checked automatically. A scan lists it with these instructions when you pass --include-manual.
For every dependency in use, ensure it is pinned to a specific version. Expected state: For every dependency in use, pin to a specific version.
How it is fixed
Fix method: Guidance or infrastructure patch
For every dependency in use, pin to a specific version.
Properties
- Operating systems
- Any
- Tags
- githubdependencies
- Reference
- CIS GitHub Benchmark v1.2.0 - 3.1.7 Ensure dependencies are pinned to a specific, verified version