What is the purpose of pinning GitHub Actions to a full commit SHA instead of a tag, and what security risk does it mitigate?

Github Hard

Github — Hard

What is the purpose of pinning GitHub Actions to a full commit SHA instead of a tag, and what security risk does it mitigate?

Key points

  • Tag mutability poses a significant security risk
  • Commit SHAs provide immutable references
  • Pinning to SHAs ensures code integrity
  • Tags can be silently changed

Ready to go further?

Related questions