Skip to content

Conversation

@Arthur1
Copy link
Contributor

@Arthur1 Arthur1 commented Oct 21, 2025

To reduce the risk of supply chain attacks, pinning action dependencies using SHA is recommended.

Pinning an action to a full-length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload.

https://docs.github.com/en/enterprise-cloud@latest/actions/reference/security/secure-use#using-third-party-actions

Additionally, if SHA pinning enforcement setting is enabled, workflows using ent/contrib/ci will not function. This is because the system recursively checks whether composite actions are pinned.

This pull request addresses these issues by pinning actions/github-script action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant