T08 · Insecure Dependencies
- Location
SKILL.md:438- Finding
Privileged CI/CD Workflows Use Mutable Third-Party Action References
- Content
View full analysis
- Remediation
View remediation
# v4.x.x - uses: aws-actions/configure-aws-credentials@ # v4.x.x - uses: hashicorp/setup-terraform@ # v3.x.x ``` 2. Use Dependabot or Renovate to propose reviewed SHA updates while retaining an adjacent release-version comment for readability. 3. Move permissions from workflow scope to individual jobs. Only jobs that actually authenticate to AWS should receive `id-token: write`. 4. Remove `pull-requests: write` from jobs that do not post pull-request comments. 5. Use distinct least-privilege IAM roles for planning, drift detection, and applying changes. The plan and drift roles should be read-only wherever possible. 6. Use separate roles and approval environments for development, staging, and production. 7. Ensure production environment protection requires authorized reviewers and prevents untrusted branches from invoking the production role. 8. Consider artifact attestations, strict artifact retention, and verification controls before applying a downloaded Terraform plan. ]]>
