security: pin GitHub Actions to commit hashes#279
Merged
Conversation
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Related
Fixes zizmor finding: 'action is not pinned to a hash'