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 — Set default signature verification for supported distributions by johnoliver · Pull Request #1246 · actions/setup-java

Conversation

@johnoliver

@johnoliver johnoliver commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

This pull request updates the Java setup action to change how signature verification is handled for downloaded Java packages. Signature verification is now enabled by default for the temurin and microsoft distributions, while remaining disabled for others unless explicitly set. The changes also update documentation, input handling, and tests to reflect this new default behavior.

Key changes include:

Default Behavior and Input Handling:

  • Signature verification (verify-signature) now defaults to enabled for temurin and microsoft distributions, and is disabled for others unless explicitly specified. The input is now optional, and if not provided, the action determines the default based on the distribution. [1] [2] [3]
  • The action.yml and README.md have been updated to reflect the new default behavior for verify-signature. [1] [2]
  • The input parsing logic in src/setup-java.ts now uses a new function getVerifySignatureInput() to correctly handle undefined or explicit values for verify-signature. [1] [2] [3]

Testing and Validation:

  • Tests for both temurin and microsoft installers have been updated to verify that signature verification is enabled by default, and to check that it can be explicitly disabled when requested. [1] [2] [3] [4]
  • Orchestration tests in setup-java.test.ts have been updated to check that the correct signature verification value is passed to the distribution based on input and defaults. [1] [2] [3]

These changes ensure better security defaults for supported distributions while allowing users to override signature verification behavior as needed.

Sorry, something went wrong.

Uh oh!

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

All reactions
johnoliver added 2 commits August 20, 2026 13:48
@johnoliver
Default signature verification for supported distributions
0d49ab0
@johnoliver
Delegate signature defaults to installers
a284b52
Copilot AI lite review requested due to automatic review settings August 20, 2026 14:06
@johnoliver
johnoliver requested a review from a team as a code owner August 20, 2026 14:06
Copilot AI reviewed Aug 20, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull request overview

This pull request changes how the action decides whether to verify downloaded JDK signatures by making signature verification default to “on” for distributions that support it (currently Temurin and Microsoft), while keeping it “off” for other distributions unless explicitly enabled/disabled via input.

Changes:

  • Makes verify-signature input optional and distinguishes “unset” from an explicit boolean value in input parsing.
  • Updates distribution installer defaulting so supported distributions automatically enable signature verification when the input is not provided.
  • Updates documentation and tests to reflect and validate the new default behavior.

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/setup-java.ts Adds getVerifySignatureInput() and passes verifySignature: boolean | undefined through to installers.
src/distributions/base-installer.ts Defaults signature verification to supportsSignatureVerification() when input is unset.
README.md Documents distribution-dependent defaults for verify-signature.
action.yml Removes the hardcoded default so “unset” can be detected.
tests/setup-java.test.ts Adds orchestration tests for explicit vs unset verify-signature.
tests/distributors/temurin-installer.test.ts Updates Temurin tests to verify “default on” and “explicitly off”.
tests/distributors/microsoft-installer.test.ts Updates Microsoft tests to verify “default on”.
dist/setup/index.js Updates compiled output for setup logic changes.
dist/setup/242.index.js Updates compiled output for base installer defaulting changes.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sorry, something went wrong.

Uh oh!

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

All reactions
Copilot started reviewing on behalf of johnoliver August 20, 2026 16:05
View session
@johnoliver
johnoliver requested a balanced review from Copilot August 24, 2026 12:30
Copilot started reviewing on behalf of johnoliver August 24, 2026 12:30
View session
Copilot AI reviewed Aug 24, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 9 changed files in this pull request and generated no new comments.

Sorry, something went wrong.

Uh oh!

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

All reactions
brunoborges
brunoborges approved these changes Aug 24, 2026
View reviewed changes
@brunoborges
brunoborges merged commit b96213d into actions:main Aug 24, 2026
84 checks passed

Uh oh!

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

@JeffreyDallas JeffreyDallas mentioned this pull request Aug 27, 2026
chore(deps): bump actions/setup-java from 5.7.0 to 6.0.0 in the github-actions-deps group hiero-ledger/solo#5896
Merged
@rtibblesbot rtibblesbot mentioned this pull request Sep 1, 2026
chore(deps): bump actions/setup-java from 5.6.0 to 6.0.0 in the github group learningequality/studio#6115
Merged
@rennerdo30 rennerdo30 mentioned this pull request Oct 22, 2026
[Historical PR] deps(actions): bump actions/setup-java from 5 to 6 in the actions-all group rennerdo30/toss-share#122
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@brunoborges brunoborges brunoborges approved these changes

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

@johnoliver @brunoborges
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.