GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: pin GitHub Actions to commit SHA by quentin-laplanche-docker · Pull Request #3395 · docker/docker-py

Conversation

@quentin-laplanche-docker

@quentin-laplanche-docker quentin-laplanche-docker commented Apr 20, 2026

Copy link
Copy Markdown

What

This Pull Request pins all GitHub Actions references in workflow files from mutable tags (e.g. v4, latest) to their corresponding full-length commit SHAs, with the original tag preserved as an inline comment for readability.

Before:

uses: actions/checkout@v4

After:

uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

Important

No functional behavior changes — workflows will run the exact same action code as before.

Why

Mutable tags (like v4 or latest) can be force-pushed to point to a different commit at any time. Pinning to a full SHA ensures:

  • Supply chain integrity — the exact code that runs in CI is immutable and auditable
  • Protection against tag hijacking — a compromised upstream action can't silently inject malicious code via a tag update
  • Reproducible builds — workflows always use the same action code regardless of upstream changes

Note

Where mutable references were used (e.g. v4, latest), the SHA corresponds to the commit the reference pointed to on April 16th, 2026 at 11:30 AM UTC.

How this was done

Changes were generated automatically by the Docker security team using internal tooling that resolves each action tag to its corresponding commit SHA via the GitHub API and rewrites the workflow files.

Every third-party action used across the org has been individually security-reviewed before pinning.

How to review

  • Each uses: line now references a full 40-character SHA
  • Pinned SHAs match the versions previously used
  • Inline # vX comments match the original tags that were pinned

Please feel free to edit this pull request !

Warning

If anything looks incorrect or unexpected, or if you have questions, reach out to #help-security on Slack before merging.


Note

If you need to update a pinned action in the future, update both the SHA and the inline comment.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@quentin-laplanche-docker
chore: pin GitHub Actions to commit SHA
c26427b
Signed-off-by: Quentin Laplanche <[email protected]>
@quentin-laplanche-docker
quentin-laplanche-docker force-pushed the sec-cli/pin-actions branch from 5d82976 to c26427b Compare April 20, 2026 08:16
vallieres
vallieres approved these changes Jun 4, 2026
View reviewed changes
Docker Agent
chore: re-trigger CI
750bd71
Signed-off-by: Docker Agent <[email protected]>
@vallieres
vallieres force-pushed the sec-cli/pin-actions branch from 67c8400 to 750bd71 Compare June 5, 2026 13:27
@vallieres vallieres closed this Jun 5, 2026
@vallieres vallieres reopened this Jun 5, 2026
@vallieres

vallieres commented Jun 5, 2026

Copy link
Copy Markdown

CI re-trigger attempted: pushed an empty signed-off commit and closed/reopened the PR, but GitHub Actions did not create a new workflow run (likely due to fork PR restrictions). The original failure in run #24655911676 was a transient DNS resolution error for the DinD service, unrelated to the SHA-pinning change. A maintainer with write access may need to manually re-run the failed jobs or trigger CI via another method.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vallieres

vallieres commented Jun 5, 2026

Copy link
Copy Markdown

@copilot resolve the merge conflicts in this pull request

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vvoland

vvoland commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Replaced by #3408

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vvoland vvoland closed this Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@vallieres vallieres vallieres approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@quentin-laplanche-docker @vallieres @vvoland
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.