T08 · Insecure Dependencies
- Location
scripts/setup.sh:654- Finding
Generated CI Workflows Execute Mutable Third-Party Dependencies
- Content
View full analysis
- Remediation
View remediation
``` 2. Replace `dtolnay/rust-toolchain@master` with an immutable reviewed commit. 3. Replace `version: latest` and Go's `@latest` with explicit, tested versions. 4. Pin CircleCI orbs to exact versions and consider using organization policies to restrict permitted orbs. 5. Use automated dependency-update tooling to propose reviewed upgrades rather than silently tracking mutable references. 6. Apply least-privilege CI permissions explicitly, for example: ```yaml permissions: contents: read ``` 7. Separate jobs that need secrets from jobs that execute third-party actions. 8. Make Codecov integration optional, clearly disclose that coverage data is sent to Codecov, and pin the Codecov action to a reviewed commit SHA. ]]>
