T08 · Insecure Dependencies
- Location
examples/github/dependency-guard.yml:32- Finding
Unpinned Third-Party CLI Is Executed with CI Credentials
- Content
View full analysis
- Remediation
View remediation
``` 2. Prefer a lockfile-backed local development dependency and execute it with a lockfile-enforcing installation process such as `npm ci`. 3. Pin `actions/checkout` and `actions/setup-node` to reviewed immutable commit SHAs. 4. Confirm whether `socket ci` requires both `pull-requests: write` and `issues: write`; remove every permission not strictly required. 5. Keep credentials scoped to only the execution step that needs them, as the workflow currently does, and avoid exposing them to installation steps. 6. Use a narrowly scoped Socket integration key and rotate it after any suspected upstream compromise. 7. Apply GitHub environment protections or other approval controls where practical. 8. Monitor and review dependency updates before changing the pinned CLI version. ]]>
