Skip to content

chore(deps): bump docker/setup-qemu-action from 3 to 4#335

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/github_actions/docker/setup-qemu-action-4
Open

chore(deps): bump docker/setup-qemu-action from 3 to 4#335
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/github_actions/docker/setup-qemu-action-4

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 1, 2026

Copy link
Copy Markdown
Contributor

Bumps docker/setup-qemu-action from 3 to 4.

Release notes

Sourced from docker/setup-qemu-action's releases.

v4.0.0

Full Changelog: docker/setup-qemu-action@v3.7.0...v4.0.0

v3.7.0

Full Changelog: docker/setup-qemu-action@v3.6.0...v3.7.0

v3.6.0

Full Changelog: docker/setup-qemu-action@v3.5.0...v3.6.0

v3.5.0

Full Changelog: docker/setup-qemu-action@v3.4.0...v3.5.0

v3.4.0

Full Changelog: docker/setup-qemu-action@v3.3.0...v3.4.0

v3.3.0

Full Changelog: docker/setup-qemu-action@v3.2.0...v3.3.0

v3.2.0

Full Changelog: docker/setup-qemu-action@v3.1.0...v3.2.0

v3.1.0

... (truncated)

Commits
  • 96fe6ef Merge pull request #315 from docker/dependabot/npm_and_yarn/docker/actions-to...
  • 31f08d3 [dependabot skip] chore: update generated content
  • 4e7017a build(deps): bump @​docker/actions-toolkit from 0.91.0 to 0.92.0
  • 0eca235 Merge pull request #314 from crazy-max/fix-yarn-preapprove-actions-toolkit
  • ea66a41 chore: allow actions-toolkit to bypass yarn age gate
  • 451542b Merge pull request #308 from docker/dependabot/npm_and_yarn/undici-6.27.0
  • 532ae00 [dependabot skip] chore: update generated content
  • b6f5af6 build(deps): bump undici from 6.26.0 to 6.27.0
  • cf96b86 Merge pull request #304 from docker/dependabot/npm_and_yarn/tmp-0.2.7
  • f0ba643 [dependabot skip] chore: update generated content
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 3 to 4.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](docker/setup-qemu-action@v3...v4)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Jul 1, 2026
@dependabot dependabot Bot requested a review from a team as a code owner July 1, 2026 15:04
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Jul 1, 2026

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
uses: docker/setup-qemu-action@v4

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Semgrep identified an issue in your code:

docker/setup-qemu-action@v4 uses a movable tag, so a repointed v4 tag could run attacker-controlled code in the Set up QEMU step and tamper with build artifacts.

More details about this

docker/setup-qemu-action@v4 is pulled by the movable v4 tag, so this workflow will run whatever code the action publisher points that tag to at build time. In this job, that action runs in the Set up QEMU step before docker buildx build, so if v4 were repointed to a malicious commit, the attacker’s code would execute on ubuntu-latest with access to the checked-out repository and the job’s runtime credentials.

A plausible attack looks like this:

  1. An attacker compromises the docker/setup-qemu-action repository or a maintainer account and moves the v4 tag to a new malicious commit.
  2. Your container_builds job resolves uses: docker/setup-qemu-action@v4 to that new commit the next time the workflow runs.
  3. The malicious action runs during Set up QEMU and can read files from the repository already fetched by actions/checkout@v6, inspect environment variables, and modify the runner state before the later Run Buildx step.
  4. It could then tamper with the build inputs or generated ./prebuilds artifacts so the actions/upload-artifact@v7 step publishes attacker-controlled build output.

Because the reference here is @v4 instead of a full 40-character commit SHA, the exact code executed by this step can change without any workflow diff in this repository.

To resolve this comment:

✨ Commit fix suggestion

Suggested change
uses: docker/setup-qemu-action@v4
uses: docker/setup-qemu-action@8ade135a41bc03ea155e62e844d188df1ea18608 # docker/setup-qemu-action v4
View step-by-step instructions
  1. Replace the mutable action reference with a full 40-character commit SHA instead of @v4.
    Change uses: docker/setup-qemu-action@v4 to uses: docker/setup-qemu-action@<full-40-character-commit-sha>.

  2. Get the SHA from the docker/setup-qemu-action repository by opening the v4 release or tag on GitHub and copying the commit hash for the exact revision you want to trust.
    The final value should look like uses: docker/setup-qemu-action@8ade135a41bc03ea155e62e844d188df1ea18608.

  3. Add a short comment next to the pinned reference so future updates are intentional, for example # docker/setup-qemu-action v4.
    Pinning to a commit SHA prevents the action owner from silently changing what runs under the same tag.

💬 Ignore this finding

Reply with Semgrep commands to ignore this finding.

  • /fp <comment> for false positive
  • /ar <comment> for acceptable risk
  • /other <comment> for all other reasons

Alternatively, triage in Semgrep AppSec Platform to ignore the finding created by github-actions-mutable-action-tag.

🛟 Help? Slack #semgrep-help or go/semgrep-help.

Resolution Options:

  • Fix the code
  • Reply /fp $reason (if security gap doesn’t exist)
  • Reply /ar $reason (if gap is valid but intentional; add mitigations/monitoring)
  • Reply /other $reason (e.g., test-only)

You can view more details about this finding in the Semgrep AppSec Platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants