T08 · Insecure Dependencies
- Location
README.md:60- Finding
Unpinned Third-Party Runtime Dependencies
- Content
View full analysis
- Remediation
View remediation
requests== ``` 2. Generate and verify cryptographic hashes, using a workflow such as: ```bash pip-compile --generate-hashes requirements.in pip install --require-hashes -r requirements.txt ``` 3. Pin transitive dependencies through a lockfile rather than pinning only direct dependencies. 4. Use an explicitly trusted package index and disable unexpected fallback indexes where practical: ```bash python3 -m pip install \ --index-url https://pypi.org/simple \ --require-hashes \ -r requirements.txt ``` 5. Run dependency vulnerability and provenance checks during releases. 6. Test and review dependency upgrades before updating the lockfile. 7. Execute automatic checks in a restricted environment containing only the single credential required for that provider. ]]>
