Pinning Third-Party Actions
Why do security guides recommend uses: some/action@<40-character commit SHA> instead of @v3?
uses: some/action@<40-character commit SHA>
@v3
Choose one answer
A tag can be moved to malicious code; a commit SHA always means the same code.
Tags like v3 are deprecated by GitHub and stop resolving one year after they are created.
v3
Only full SHA references are allowed in workflows that run in private repositories.
SHAs make the workflow start faster because GitHub caches them separately.