Policy: action_ref_should_be_full_length_commit_sha
mainThe action_ref_should_be_full_length_commit_sha policy enforces security hardening by requiring GitHub Actions to be pinned to a full-length commit SHA rather than a tag or branch. This mitigates the risk of supply chain attacks where a tag might be moved to a malicious commit.
Invalid usage (Tag/Branch):
actions/checkout@v3Valid usage (Full-length SHA):
actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3# Valid example
actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c