Pinning Third-Party Actions
A workflow uses some-org/deploy-action@v2. Security asks you to make sure the action's code can't change under you. What do you do?
some-org/deploy-action@v2
Choose one answer
Fork the action and reference @main of your fork.
@main
Use @v2.3.1 instead of @v2, because full version tags can't be moved.
@v2.3.1
@v2
Turn on Dependabot alerts, which block changed tags from running.
Pin the action to a full-length commit SHA, with the version in a comment.