Github
GitHub is a code hosting and version control platform for developers to collaborate on software projects.
Website
Industry
Website
Share this article:

How to require actions to be pinned to a full-length commit SHA for a repository in GitHub

Here is how to require actions to be pinned to a full-length commit sha for a repository in github

  1. First, open the repository where you want to require actions to be pinned
  2. Next click on "Settings" tab in the repository navigation bar
  3. In the sidebar menu, click on "Actions" section
  4. Click on "General" option under the Actions section
  5. Then check the "Require actions to be pinned to a full-length commit SHA" checkbox to enable this requirement
  6. Finally click on "Save" button to save the Actions settings

Create your own interactive guide with Guideflow

Why should you require actions to be pinned to a full-length commit SHA for a repository in GitHub

GitHub is a powerful platform designed to facilitate efficient collaboration and code management for developers worldwide.

Requiring actions to be pinned to a full-length commit SHA secures your repository by ensuring actions always point to a specific, immutable version of code. This enhances security by making it hard for malicious changes to go unnoticed, guaranteeing a predictable build environment.

Using full-length commit SHAs can significantly improve the consistency across deployments. Developers can lean on this feature to pinpoint direct actions, minimizing unexpected issues and fostering reliability in the development process.

Last update
April 10, 2026
Cursor MariaA cursor points to a button labeled "James."

Create your first demo in less than 30 seconds.