Skip to content

ci: pin all GitHub Actions to commit SHA, bump to latest#211

Merged
cooper667 merged 2 commits into
mainfrom
ci/pin-actions-sha
Jul 14, 2026
Merged

ci: pin all GitHub Actions to commit SHA, bump to latest#211
cooper667 merged 2 commits into
mainfrom
ci/pin-actions-sha

Conversation

@cooper667

@cooper667 cooper667 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Pins every uses: in the CI workflows to a full commit SHA (with a # vX.Y.Z comment for readability), and bumps each action to its latest release where one was pinned but stale, or was floating on a major-version tag.

Action Before After
actions/checkout v6.0.1 (pinned) v7.0.0 (pinned)
actions/cache/restore, .../save @v4 (floating) v6.1.0 (pinned)
docker/setup-buildx-action @v3 (floating) v4.2.0 (pinned)
docker/metadata-action v5.6.1 (pinned) v6.2.0 (pinned)
docker/login-action v3.6.0 (pinned) v4.4.0 (pinned)
docker/build-push-action v6.10.0 (pinned) v7.3.0 (pinned)

Pinning to SHA avoids supply-chain risk from a mutable tag being repointed.

Also fixes deprecated Node 20 warnings

- actions/checkout v6.0.1 -> v7.0.0
- actions/cache/restore, actions/cache/save v4 (unpinned) -> v6.1.0 (pinned)
- docker/setup-buildx-action v3 (unpinned) -> v4.2.0 (pinned)
- docker/metadata-action v5.6.1 -> v6.2.0
- docker/login-action v3.6.0 -> v4.4.0
- docker/build-push-action v6.10.0 -> v7.3.0
@cooper667
cooper667 requested a review from ChasNelson1990 July 14, 2026 06:20
@cooper667
cooper667 enabled auto-merge (squash) July 14, 2026 07:18
ChasNelson1990
ChasNelson1990 previously approved these changes Jul 14, 2026

@ChasNelson1990 ChasNelson1990 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ChasNelson1990 ChasNelson1990 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ChasNelson1990 ChasNelson1990 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cooper667
cooper667 merged commit 4c24bd8 into main Jul 14, 2026
4 checks passed
@cooper667
cooper667 deleted the ci/pin-actions-sha branch July 14, 2026 08:04
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.

2 participants