Back to all reviewers

Pin GitHub Actions dependencies

prowler-cloud/prowler
Based on 3 comments
Yaml

Always pin GitHub Actions to specific commit SHAs rather than using major version references to prevent supply chain attacks and ensure workflow stability. This practice ensures your CI/CD pipelines remain consistent and secure even if the referenced action is updated or compromised.

CI/CD Yaml

Reviewer Prompt

Always pin GitHub Actions to specific commit SHAs rather than using major version references to prevent supply chain attacks and ensure workflow stability. This practice ensures your CI/CD pipelines remain consistent and secure even if the referenced action is updated or compromised.

Example:

# Instead of this (vulnerable to supply chain attacks):
- name: Find existing changelog comment
  uses: peter-evans/find-comment@v3

# Use this (pinned to specific SHA and version):
- name: Find existing changelog comment
  uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e #v3.1.0

Additionally, when implementing workflows that require temporary workarounds (like installing special system dependencies), document these with TODOs and create tickets to revisit them when the underlying issues are resolved. This helps manage technical debt in your CI/CD configurations.

3
Comments Analyzed
Yaml
Primary Language
CI/CD
Category

Source Discussions