May 22, 2025 Source: The Hacker News

Security researchers have continued to highlight the risks of using third-party GitHub Actions in CI/CD pipelines. Pinning actions to a specific commit SHA rather than a mutable tag is now considered best practice, as tag references can be silently updated by a compromised maintainer.

The attack surface is significant: a malicious or compromised action with broad permissions can exfiltrate secrets, modify build artifacts, or introduce backdoors into software before it ships.

What You Can Do

  • Pin actions to commit SHAs instead of version tags (uses: actions/checkout@<sha> not @v4)
  • Audit third-party action permissions — minimize GITHUB_TOKEN scope using permissions: in your workflow
  • Use Dependabot or Renovate to get automated PRs when pinned SHAs are updated by maintainers

Treating your CI/CD pipeline with the same rigor as your production code is no longer optional.