Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.22 KB

File metadata and controls

45 lines (29 loc) · 1.22 KB

GHA003 — Pin third-party actions to a full commit SHA

Overview

Third-party actions should be pinned to a full 40-character commit SHA instead of a mutable tag or branch.

Why it matters

Tags and branches can move. Pinning to a commit SHA gives stronger supply-chain integrity because the workflow runs the exact action revision that was reviewed.

Bad example

steps:
  - uses: actions/checkout@v4
  - uses: docker/login-action@v3
  - uses: some-user/some-action@main

Good example

steps:
  - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

Local actions are not flagged:

steps:
  - uses: ./.github/actions/my-action

Recommendation

Pin third-party actions to a reviewed full commit SHA and update intentionally through dependency automation or regular maintenance.

Severity

MEDIUM

References