Skip to content

chore(deps): bump actions/setup-java from 5.6.0 to 6.0.0 - #95

Merged
bbaarriiss merged 1 commit into
mainfrom
dependabot/github_actions/actions/setup-java-6.0.0
Sep 1, 2026
Merged

chore(deps): bump actions/setup-java from 5.6.0 to 6.0.0#95
bbaarriiss merged 1 commit into
mainfrom
dependabot/github_actions/actions/setup-java-6.0.0

Conversation

@dependabot

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

Copy link
Copy Markdown

Bumps actions/setup-java from 5.6.0 to 6.0.0.

Release notes

Sourced from actions/setup-java's releases.

v6.0.0

What's Changed

... (truncated)

Commits

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 [actions/setup-java](https://github.com/actions/setup-java) from 5.6.0 to 6.0.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](actions/setup-java@v5.6.0...v6.0.0)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-version: 6.0.0
  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 Sep 1, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner September 1, 2026 01:53
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Sep 1, 2026
steps:
- uses: actions/checkout@v7
- uses: actions/setup-java@v5.6.0
- uses: actions/setup-java@v6.0.0

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:

The build runs actions/setup-java from the mutable v6.0.0 tag. If that tag is repointed, a future pull-request workflow can execute attacker-controlled code with access to the runner and any available workflow credentials.

More details about this

actions/setup-java@v6.0.0 selects a mutable release tag rather than an immutable commit. The action owner can move v6.0.0 to a different commit without changing this workflow, so a future run could execute attacker-controlled code before ./gradlew ktlintCheck, ./gradlew detekt, and ./gradlew build --info run.

A plausible attack is:

  1. An attacker compromises the actions/setup-java release process or gains control of the v6.0.0 tag.
  2. They repoint v6.0.0 to code that runs during the actions/setup-java step and reads the checkout, environment, and available GitHub Actions credentials.
  3. When this Build workflow runs for a pull request, the malicious step can alter files or Gradle configuration before the ./gradlew commands execute, capture accessible GITHUB_TOKEN or repository secrets, and send them to an attacker-controlled server.
  4. The workflow still appears to perform the normal Java setup and build, making the compromise difficult to notice. The same workflow also uses mutable references for actions/checkout@v7 and actions/upload-artifact@v7, creating additional moving trust dependencies.

To resolve this comment:

✨ Commit fix suggestion

Suggested change
- uses: actions/setup-java@v6.0.0
- uses: actions/setup-java@<VERIFIED_VALUE_REQUIRED>
View step-by-step instructions
  1. Replace the mutable v6.0.0 reference with the full 40-character commit SHA that corresponds to the actions/setup-java v6.0.0 release: uses: actions/setup-java@<40-character-commit-SHA>.
  2. Keep the existing with configuration unchanged. A commit SHA cannot be silently moved to different code, unlike a version tag or branch name.
  3. Apply the same SHA-pinning format to the other third-party actions in this workflow, such as actions/checkout and actions/upload-artifact, if they are also not pinned to full 40-character commit SHAs.
💬 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.

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

@bbaarriiss
bbaarriiss merged commit 48077f2 into main Sep 1, 2026
7 checks passed
@bbaarriiss
bbaarriiss deleted the dependabot/github_actions/actions/setup-java-6.0.0 branch September 1, 2026 06:37
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.

1 participant