Skip to content

.tip

· one of the small things

Pin GitHub Actions by commit digest, not tag

A tag can be moved. The March CI campaign force-pushed tags on a popular action, and every workflow that trusted @v1 ran the new code. A digest can't be moved.

uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

Dependabot and Renovate keep the digest up to date and the comment readable.

securityci