Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: actions/setup-java
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.4.0
Choose a base ref
...
head repository: actions/setup-java
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5
Choose a head ref
  • 17 commits
  • 46 files changed
  • 12 contributors

Commits on Jun 26, 2026

  1. chore: enforce pre-PR validation (aggregate scripts, git hooks, PR ch…

    …ecklist) (#1061)
    
    * chore: enforce pre-PR validation with aggregate scripts, git hooks, and PR checklist
    
    Add tooling to help contributors run the same checks as CI before
    submitting a pull request, reducing avoidable format/lint/build failures.
    
    - Add aggregate npm scripts:
      - `npm run check` runs format-check + lint + build + test (mirrors CI)
      - `npm run fix` runs format + lint:fix + build
    - Add husky + lint-staged git hooks (installed via `npm install`):
      - pre-commit formats and lints staged files
      - pre-push rebuilds dist/ and runs the test suite
    - Add a checklist item to the PR template prompting contributors to run
      `npm run check` locally
    - Document the aggregate scripts and hooks in docs/contributors.md
    
    dist/ is intentionally not auto-committed by CI to avoid pwn-request
    security risks; the existing `Check dist/` workflow continues to verify it.
    
    Co-authored-by: Copilot <[email protected]>
    
    * Apply suggestions from code review
    
    Co-authored-by: Copilot Autofix powered by AI <[email protected]>
    
    ---------
    
    Co-authored-by: Copilot <[email protected]>
    Co-authored-by: Copilot Autofix powered by AI <[email protected]>
    3 people authored Jun 26, 2026
    Configuration menu
    Copy the full SHA
    623c707 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2026

  1. Bump github/codeql-action from 3 to 4 (#1069)

    Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3 to 4.
    - [Release notes](https://github.com/github/codeql-action/releases)
    - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
    - [Commits](github/codeql-action@v3...v4)
    
    ---
    updated-dependencies:
    - dependency-name: github/codeql-action
      dependency-version: '4'
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 29, 2026
    Configuration menu
    Copy the full SHA
    c5f2f2e View commit details
    Browse the repository at this point in the history
  2. Bump actions/checkout from 6 to 7 (#1068)

    Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
    - [Release notes](https://github.com/actions/checkout/releases)
    - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
    - [Commits](actions/checkout@v6...v7)
    
    ---
    updated-dependencies:
    - dependency-name: actions/checkout
      dependency-version: '7'
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 29, 2026
    Configuration menu
    Copy the full SHA
    aff09c2 View commit details
    Browse the repository at this point in the history
  3. Bump actions/setup-python from 5 to 6 (#1067)

    Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6.
    - [Release notes](https://github.com/actions/setup-python/releases)
    - [Commits](actions/setup-python@v5...v6)
    
    ---
    updated-dependencies:
    - dependency-name: actions/setup-python
      dependency-version: '6'
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 29, 2026
    Configuration menu
    Copy the full SHA
    bf1fac8 View commit details
    Browse the repository at this point in the history
  4. Bump @typescript-eslint/parser from 8.61.1 to 8.62.0 (#1062)

    Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 8.61.1 to 8.62.0.
    - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
    - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
    - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.62.0/packages/parser)
    
    ---
    updated-dependencies:
    - dependency-name: "@typescript-eslint/parser"
      dependency-version: 8.62.0
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 29, 2026
    Configuration menu
    Copy the full SHA
    e9339dd View commit details
    Browse the repository at this point in the history
  5. feat: Add verify-signature plumbing and Temurin+Microsoft verificatio…

    …n support (#1060)
    
    * Add verify-signature plumbing and Temurin verification support
    
    * Rebuild dist after signature verification changes
    
    * Refine signature verification errors and regenerate dist
    
    * refactor: make gpg.ts generic, move Adoptium-specific constant to temurin distribution
    
    * fix: mock renameWinArchive in temurin tests and add signature e2e job
    
    * refactor: bundle Adoptium public key, replace keyserver lookup with local import
    
    * feat: add verify-signature-public-key input to allow custom GPG key override
    
    * refactor: extract Adoptium public key to adoptium-key.ts; tighten gpg.ts cleanup scope
    
    * Add verify-signature plumbing and Temurin verification support
    
    * Potential fix for pull request finding
    
    Co-authored-by: Copilot Autofix powered by AI <[email protected]>
    
    * Potential fix for pull request finding
    
    Co-authored-by: Copilot Autofix powered by AI <[email protected]>
    
    * Add Microsoft signature verification support
    
    * Regenerate dist bundles for Microsoft signature checks
    
    * Harden Microsoft signature URL handling
    
    * Add setup-java-microsoft-signature-verification e2e job
    
    * chore: regenerate dist files
    
    * Fix e2e-versions: remove duplicate job, update signature jobs to checkout@v7 with env vars
    
    * Fix Prettier formatting in test files
    
    * fix: mock renameWinArchive in microsoft-installer tests to fix Windows CI failure
    
    * fix: use --homedir flag instead of GNUPGHOME env var for Windows GPG compatibility
    
    The Git-bundled GPG on Windows (MSYS2-based) does not automatically convert
    Windows-style paths in environment variables like GNUPGHOME. This caused GPG
    to fail with exit code 2 when verifying Microsoft JDK signatures on Windows,
    because the GNUPGHOME path (D:\a\_temp\...) was not recognized as a valid
    POSIX path.
    
    Fix: pass --homedir as an explicit command-line argument to both gpg --import
    and gpg --verify. MSYS2 does correctly convert Windows paths in command-line
    arguments, so this approach works reliably on Windows, Linux, and macOS.
    
    * fix: convert Windows paths to POSIX format for MSYS2 GPG on Windows
    
    The Git-bundled GPG on Windows (C:\Program Files\Git\usr\bin\gpg.exe) is
    an MSYS2-based binary that uses POSIX path conventions internally. When
    Windows-style paths with backslashes and drive letters (D:\a\_temp\...)
    are passed as arguments, GPG may fail to resolve them correctly, resulting
    in a fatal error (exit code 2).
    
    Fix: add a toGpgPath() helper that converts Windows paths to MSYS2 POSIX
    format (/d/a/_temp/...) before passing them to any gpg command. On Linux
    and macOS the helper is a no-op.
    
    Applied to all four paths used in verifyPackageSignature:
    - gpgHome (--homedir argument)
    - publicKeyFile (--import argument)
    - signaturePath (--verify signature argument)
    - archivePath (--verify data argument)
    
    * Fix gpg test formatting
    
    ---------
    
    Co-authored-by: copilot-swe-agent[bot] <[email protected]>
    Co-authored-by: Copilot Autofix powered by AI <[email protected]>
    Co-authored-by: Bruno Borges <[email protected]>
    4 people authored Jun 29, 2026
    Configuration menu
    Copy the full SHA
    b150355 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2026

  1. Updated jetbrains test: https.request() now catches errors. This fixe…

    …s leaking tests as well (#1070)
    
    * Updated jetbrains https.request command to catch errors. This fixes leaking tests as well
    
    * Removed deprecated lines from pre-commit and pre-push
    
    * added suggestion from PR feedback
    jmjaffe37 authored Jul 2, 2026
    Configuration menu
    Copy the full SHA
    2e73c8f View commit details
    Browse the repository at this point in the history
  2. Fix arm64 e2e workflow tests mislabeled as x64 (#1073)

    * Initial plan
    
    * Fix mislabeled arch in e2e workflow job names for Apple silicon runners
    
    ---------
    
    Co-authored-by: copilot-swe-agent[bot] <[email protected]>
    Co-authored-by: Bruno Borges <[email protected]>
    Copilot and brunoborges authored Jul 2, 2026
    Configuration menu
    Copy the full SHA
    324b333 View commit details
    Browse the repository at this point in the history
  3. feat: suppress Maven transfer progress via MAVEN_ARGS by default (add…

    … show-download-progress input) (#1053)
    
    * feat: suppress Maven transfer progress via MAVEN_ARGS by default
    
    Set MAVEN_ARGS to include -ntp (--no-transfer-progress) so Maven invocations
    in the job produce cleaner CI logs without download/transfer progress noise.
    Add a new optional 'show-download-progress' input (default false); set it to
    true to keep the progress output.
    
    The change preserves any existing MAVEN_ARGS value (the flag is appended,
    not overwritten) and is idempotent (it won't add the flag twice if -ntp or
    --no-transfer-progress is already present). Applies on all platforms; honored
    by Maven 3.9.0+ and the Maven Wrapper, and is a no-op for non-Maven builds.
    
    - action.yml: add show-download-progress input
    - src/constants.ts: add input + MAVEN_ARGS constants
    - src/maven-args.ts: new configureMavenArgs()
    - src/setup-java.ts: invoke configureMavenArgs() during setup
    - __tests__/maven-args.test.ts: unit tests
    - docs/advanced-usage.md: document the behavior and input
    - dist: rebuild bundled action
    
    Co-authored-by: Copilot <[email protected]>
    
    * Potential fix for pull request finding
    
    Co-authored-by: Copilot Autofix powered by AI <[email protected]>
    
    * Update generated dist for Maven args log change
    
    ---------
    
    Co-authored-by: Copilot <[email protected]>
    Co-authored-by: Copilot Autofix powered by AI <[email protected]>
    Co-authored-by: copilot-swe-agent[bot] <[email protected]>
    4 people authored Jul 2, 2026
    Configuration menu
    Copy the full SHA
    6c4d4a5 View commit details
    Browse the repository at this point in the history
  4. feat: Disable interactiveMode in generated Maven settings.xml (#1052)

    * Initial plan
    
    * Add interactiveMode false to generated maven settings.xml
    
    ---------
    
    Co-authored-by: copilot-swe-agent[bot] <[email protected]>
    Co-authored-by: Bruno Borges <[email protected]>
    Copilot and brunoborges authored Jul 2, 2026
    Configuration menu
    Copy the full SHA
    733efae View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2026

  1. Bump prettier from 3.6.2 to 3.9.1 (#1066)

    * Bump prettier from 3.6.2 to 3.9.1
    
    Bumps [prettier](https://github.com/prettier/prettier) from 3.6.2 to 3.9.1.
    - [Release notes](https://github.com/prettier/prettier/releases)
    - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
    - [Commits](prettier/prettier@3.6.2...3.9.1)
    
    ---
    updated-dependencies:
    - dependency-name: prettier
      dependency-version: 3.9.1
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    
    * Format files for Prettier 3.9.1
    
    Co-authored-by: Copilot App <[email protected]>
    
    ---------
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Bruno Borges <[email protected]>
    Co-authored-by: Copilot App <[email protected]>
    3 people authored Jul 6, 2026
    Configuration menu
    Copy the full SHA
    c712b2f View commit details
    Browse the repository at this point in the history
  2. chore(deps-dev): bump eslint-plugin-jest from 29.0.1 to 29.15.4 (#1074)

    Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 29.0.1 to 29.15.4.
    - [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
    - [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
    - [Commits](jest-community/eslint-plugin-jest@v29.0.1...v29.15.4)
    
    ---
    updated-dependencies:
    - dependency-name: eslint-plugin-jest
      dependency-version: 29.15.4
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jul 6, 2026
    Configuration menu
    Copy the full SHA
    0765b15 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2026

  1. fix: Maven Toolchains grows unexpectedly (#534)

    * fix: Maven Toolchains grows unexpectedly
    
    On self-hosted runners toolchains.xml may survive multiple runs and unexpectedly
    grow as a result of the toolchains setup simply appending the JDK definition
    even if one with the same `type` and `provides.id` already exists.
    
    Restructuring the parsing step and filtering the potentially existing list of
    toolchain definitions prevents this and also fixes toolchain.xml files that
    already contain duplicates.
    
    Fixes #530
    
    * fix: guard toolchain dedup and preserve existing root attributes
    
    Address reviewer feedback on the Maven toolchains dedup logic:
    
    - Treat jdk toolchains without a string `provides.id` as non-deduplicatable
      and use optional access when comparing ids, so partially-formed or
      nonstandard toolchains.xml files no longer crash setup.
    - Preserve the existing `<toolchains>` root attributes (xmlns,
      schemaLocation, …) when present, falling back to the 1.1.0 defaults only
      for attributes the existing file is missing. This avoids silently
      rewriting user-managed metadata or changing the effective namespace.
    
    Adds tests covering custom root attributes and id-less jdk toolchains, and
    rebuilds dist/.
    
    Co-authored-by: Copilot App <[email protected]>
    
    ---------
    
    Co-authored-by: Bruno Borges <[email protected]>
    Co-authored-by: Copilot App <[email protected]>
    3 people authored Jul 7, 2026
    Configuration menu
    Copy the full SHA
    77ee41d View commit details
    Browse the repository at this point in the history
  2. dist: Support Tencent Kona JDK (#672)

    * Support Tencent Kona JDK (#672)
    
    Signed-off-by: John Jiang <[email protected]>
    
    * Potential fix for pull request finding
    
    Co-authored-by: Copilot Autofix powered by AI <[email protected]>
    
    * Address Copilot review feedback for Kona distribution
    
    - Sort matching releases by semver descending so range versions (e.g. >=17) resolve to the newest matching Kona JDK instead of the lowest
    - Rename downloaded archive on Windows before extraction (renameWinArchive) to avoid extraction failures
    - Import semver for version sorting
    
    Co-authored-by: Copilot App <[email protected]>
    
    ---------
    
    Signed-off-by: John Jiang <[email protected]>
    Co-authored-by: Bruno Borges <[email protected]>
    Co-authored-by: Bruno Borges <[email protected]>
    Co-authored-by: Copilot Autofix powered by AI <[email protected]>
    Co-authored-by: Copilot App <[email protected]>
    5 people authored Jul 7, 2026
    Configuration menu
    Copy the full SHA
    a50fdcc View commit details
    Browse the repository at this point in the history
  3. feat: Add set-default option (#1017)

    * Add set-default option
    
    This option allows to install an additional JDK without making it the
    default one.
    
    I have wanted this for quite a long time as I'm running custom GitHub
    Actions with Java, which might require a specific JDK and I don't want
    to pollute the JDK that is used by the overall workflow calling the
    action.
    And I'm apparently not alone as there was a preexisting issue.
    
    Fixes #560
    
    * Dedupe setJavaDefault and document multi-version/toolchain behavior
    
    - Refactor setJavaDefault to delegate shared output/env logic to
      setJavaEnvironment, avoiding duplication between the two.
    - Document that set-default applies to all JDKs in a multiline
      java-version, and that installed JDKs remain registered in Maven
      toolchains regardless of set-default.
    
    Co-authored-by: Copilot <[email protected]>
    
    * test: fix Prettier formatting in base-installer test
    
    Resolves the failing 'Basic validation / build' format-check on
    __tests__/distributors/base-installer.test.ts (line exceeded print width).
    
    Co-authored-by: Copilot <[email protected]>
    
    ---------
    
    Co-authored-by: Bruno Borges <[email protected]>
    Co-authored-by: Copilot <[email protected]>
    3 people authored Jul 7, 2026
    Configuration menu
    Copy the full SHA
    6657b99 View commit details
    Browse the repository at this point in the history
  4. docs: document problem matcher (and how to disable it), Maven Wrapper…

    … caching, and generated interactiveMode (#1075)
    
    * docs: document the Java problem matcher and how to disable it
    
    Add an advanced-usage section explaining the javac/java problem matcher that
    setup-java registers, and how to turn it off for a job using the built-in
    ::remove-matcher:: workflow command (owners javac and java).
    
    Co-authored-by: Copilot App <[email protected]>
    
    * docs: document Maven Wrapper caching and generated interactiveMode
    
    - README: note that cache: 'maven' also caches/restores the Maven Wrapper
      distribution (~/.m2/wrapper/dists), not just the local repository.
    - advanced-usage: note that the generated settings.xml sets interactiveMode=false
      for non-interactive CI runs.
    
    Co-authored-by: Copilot App <[email protected]>
    
    * Clarify Java problem matcher annotations
    
    Co-authored-by: Copilot App <[email protected]>
    Co-authored-by: Copilot <[email protected]>
    
    ---------
    
    Co-authored-by: Copilot App <[email protected]>
    brunoborges and Copilot authored Jul 7, 2026
    Configuration menu
    Copy the full SHA
    c4922bf View commit details
    Browse the repository at this point in the history
  5. feat: Add distribution detection support to .sdkmanrc file (#975)

    * feat: Add distribution detection support to .sdkmanrc file
    
    Extends .sdkmanrc support to automatically detect Java distribution from SDKMAN identifiers (e.g., java=21.0.5-tem maps to temurin distribution).
    
    Makes distribution input optional when using .sdkmanrc with distribution suffix.
    
    * fix: align SDKMAN sem identifier mapping
    
    * fix: support SDKMAN albba identifier
    
    * docs: clarify sdkmanrc distribution inference scope
    
    Co-authored-by: Copilot <[email protected]>
    
    * Add Tencent Kona SDKMAN mapping and format sdkmanrc docs as a table
    
    - Map SDKMAN 'kona' identifier to the 'kona' distribution (added in #672)
    - Add a .sdkmanrc test case for the kona suffix
    - Convert the inline SDKMAN suffix mapping in advanced-usage.md to a table
    - Rebuild dist bundles
    
    Co-authored-by: Copilot App <[email protected]>
    
    ---------
    
    Co-authored-by: Bruno Borges <[email protected]>
    Co-authored-by: Copilot <[email protected]>
    Co-authored-by: Bruno Borges <[email protected]>
    4 people authored Jul 7, 2026
    Configuration menu
    Copy the full SHA
    0f481fc View commit details
    Browse the repository at this point in the history
Loading