Title: docs(action): fix missing required or default fields by kranthipoturaju · Pull Request #1007 · actions/setup-java · GitHub
Open Graph Title: docs(action): fix missing required or default fields by kranthipoturaju · Pull Request #1007 · actions/setup-java
X Title: docs(action): fix missing required or default fields by kranthipoturaju · Pull Request #1007 · actions/setup-java
Description: Summary Corrects missing required/default properties and two factually inaccurate descriptions in action.yml. No runtime behaviour is changed. Changes java-version — added required: false (was implicit, now explicit) java-version-file — added required: false; fixed description which stated "the .java-version file" when the action also accepts .tool-versions and .sdkmanrc (see src/util.ts:134–141) gpg-private-key — added default: '' to match the existing description that already stated "Default is empty string" gpg-passphrase — fixed description: GPG_PASSPHRASE is only used as a fallback when gpg-private-key is set; the original implied it was an unconditional default (see src/auth.ts:28–29) job-status — added required: false (had default but no required) token — added required: false (had default but no required) Motivation action.yml is the authoritative contract for users of this action — it drives IDE autocompletion, the Marketplace UI, and schema validators. Four inputs were missing an explicit required field, one was missing its default despite the description documenting it, and two descriptions contradicted the implementation. Impact Users: no change in runtime behaviour; required defaults to false in the GitHub Actions schema when omitted, so adding it explicitly is non-breaking. default: '' for gpg-private-key matches what core.getInput() already returns when the input is unset. Tooling: schema validators and IDE extensions will now correctly reflect these inputs as optional. Backward compatibility: fully preserved — no input names, types, or previously declared defaults were altered. Testing action.yml has no compiled artifact. Each change was verified against the implementation: java-version-file file-format support: src/util.ts:134–141 gpg-passphrase conditional default: src/auth.ts:28–29 gpg-private-key empty default: src/constants.ts:17 required flags: cross-referenced core.getInput() call sites in src/setup-java.ts and src/auth.ts Related issue: No issue was created as the change is for the documentation only. Check list: Mark if documentation changes are required. Mark if tests were added or updated to cover the changes.
Open Graph Description: Summary Corrects missing required/default properties and two factually inaccurate descriptions in action.yml. No runtime behaviour is changed. Changes java-version — added required: false (was imp...
X Description: Summary Corrects missing required/default properties and two factually inaccurate descriptions in action.yml. No runtime behaviour is changed. Changes java-version — added required: false (was imp...
Opengraph URL: https://github.com/actions/setup-java/pull/1007
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:479c9be4-8a1b-81a5-bb26-4b880178f407 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A942:24568D:959E91:CA1786:6A4C467D |
| html-safe-nonce | 7dcea5c6faae05d5af9915254226b741d481315d071ddfccf3a5d471af4dc292 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTQyOjI0NTY4RDo5NTlFOTE6Q0ExNzg2OjZBNEM0NjdEIiwidmlzaXRvcl9pZCI6IjI3MTczNTYzNjQ2MzYzNzQ2NTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1c8e43760d87a3ad0ca6820362fa39d95e54f308c73718b024adfd54e650734b |
| hovercard-subject-tag | pull_request:3742317209 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,actions,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/actions/setup-java/pull/1007/files |
| twitter:image | https://avatars.githubusercontent.com/u/152148?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/152148?s=400&v=4 |
| og:image:alt | Summary Corrects missing required/default properties and two factually inaccurate descriptions in action.yml. No runtime behaviour is changed. Changes java-version — added required: false (was imp... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/actions/setup-java git https://github.com/actions/setup-java.git |
| octolytics-dimension-user_id | 44036562 |
| octolytics-dimension-user_login | actions |
| octolytics-dimension-repository_id | 196057608 |
| octolytics-dimension-repository_nwo | actions/setup-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 196057608 |
| octolytics-dimension-repository_network_root_nwo | actions/setup-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3996b3b83990e134be6c099ab9a7f48f140ae80f |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width