T08 · Insecure Dependencies
- Location
scripts/thumbnail_technical_qc.py:29- Finding
Unpinned Third-Party Dependency Installation Guidance
- Content
View full analysis
- Remediation
View remediation
``` 2. Use a lockfile or hash-verified requirements file to ensure reproducible installation: ```text Pillow== \ --hash=sha256: ``` 3. Replace the generic installation message with instructions referencing the project's reviewed dependency file: ```python raise RuntimeError( "Pillow is required. Install the reviewed dependencies with " "`python -m pip install --require-hashes -r requirements.txt`." ) from exc ``` 4. Recommend installation inside a dedicated virtual environment rather than into a system-wide Python environment. 5. Document the expected trusted package index and advise users to review pip configuration, mirrors, and proxies before installation. 6. Add automated dependency scanning and periodic review of pinned versions so security updates can be adopted without silently resolving arbitrary future releases. ]]>
