Skip to content

Pin docker/build-push-action to commit SHA (CodeQL alert #625) - #47334

Merged
pelikhan merged 3 commits into
mainfrom
copilot/fix-code-scanning-alert-625
Jul 22, 2026
Merged

Pin docker/build-push-action to commit SHA (CodeQL alert #625)#47334
pelikhan merged 3 commits into
mainfrom
copilot/fix-code-scanning-alert-625

Conversation

Copilot AI commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

docker/build-push-action was referenced by a mutable tag (v7.2.0), leaving the workflow vulnerable to supply-chain attacks if the tag is moved.

Change

Pinned to the exact commit SHA corresponding to v7.2.0:

# Before
uses: docker/build-push-action@v7.2.0

# After
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0

File affected: .github/workflows/publish-safe-outputs-node.yml

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix code scanning alert #625 Pin docker/build-push-action to commit SHA (CodeQL alert #625) Jul 22, 2026
Copilot AI requested a review from pelikhan July 22, 2026 14:35
@pelikhan
pelikhan marked this pull request as ready for review July 22, 2026 15:16
Copilot AI review requested due to automatic review settings July 22, 2026 15:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Pins docker/build-push-action to the verified commit for v7.2.0, mitigating mutable-tag supply-chain risk.

Changes:

  • Replaces the mutable version tag with its exact commit SHA.
  • Retains the version comment for Dependabot visibility.
Show a summary per file
File Description
.github/workflows/publish-safe-outputs-node.yml Pins the Docker build action to an immutable SHA.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Medium

@pelikhan
pelikhan merged commit 5cce94a into main Jul 22, 2026
@pelikhan
pelikhan deleted the copilot/fix-code-scanning-alert-625 branch July 22, 2026 15:20
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.83.0

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.

3 participants