Skip to content

security: pin GitHub Actions to commit hashes#279

Merged
chorrell merged 1 commit into
mainfrom
security/pin-github-actions-hash
May 21, 2026
Merged

security: pin GitHub Actions to commit hashes#279
chorrell merged 1 commit into
mainfrom
security/pin-github-actions-hash

Conversation

@chorrell
Copy link
Copy Markdown
Owner

Description

Remediate zizmor security findings by pinning all GitHub Actions to their full commit SHA-256 hashes instead of version tags.

Security Motivation

Pinning actions to commit hashes prevents supply chain attacks through action modifications or compromised version tags. This is a GitHub security best practice.

Changes

  • actions/checkout: pinned to v6.0.2
  • hendrikmuhs/ccache-action: pinned to v1.2.23
  • docker/setup-qemu-action: pinned to v4.0.0
  • docker/setup-buildx-action: pinned to v4.0.0
  • docker/build-push-action: pinned to v7.1.0
  • docker/login-action: pinned to v4.1.0
  • docker/metadata-action: pinned to v6.0.0
  • DavidAnson/markdownlint-cli2-action: pinned to v23.2.0

Related

Fixes zizmor finding: 'action is not pinned to a hash'

Remediate zizmor security findings by pinning all GitHub Actions to their
full commit SHA-256 hashes instead of version tags. This prevents supply
chain attacks through action modifications.

Fixes:
- actions/checkout: pinned to v6.0.2 (de0fac2e4500dabe0009e67214ff5f5447ce83dd)
- hendrikmuhs/ccache-action: pinned to v1.2.23 (d62db5f07c26379fc4b4e0916f098a92573c3b03)
- docker/setup-qemu-action: pinned to v4.0.0 (ce360397dd3f832beb865e1373c09c0e9f86d70a)
- docker/setup-buildx-action: pinned to v4.0.0 (4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd)
- docker/build-push-action: pinned to v7.1.0 (bcafcacb16a39f128d818304e6c9c0c18556b85f)
- docker/login-action: pinned to v4.1.0 (4907a6ddec9925e35a0a9e82d7399ccc52663121)
- docker/metadata-action: pinned to v6.0.0 (030e881283bb7a6894de51c315a6bfe6a94e05cf)
- DavidAnson/markdownlint-cli2-action: pinned to v23.2.0 (ded1f9488f68a970bc66ea5619e13e9b52e601cd)
@chorrell chorrell merged commit 51e4235 into main May 21, 2026
5 checks passed
@chorrell chorrell deleted the security/pin-github-actions-hash branch May 21, 2026 14:26
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