setup-java/.github/workflows
Julien Dubois f4bfb3ddea
Report concrete versions for floating Oracle JDK downloads (#1213)
* Fix floating Oracle JDK version resolution

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Update generated distribution bundles

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Harden floating artifact cache identity

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Regenerate setup bundle after cache hardening

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Temporarily enable hosted full validation

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Export hosted formatting results

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Apply repository formatting

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Run hosted validation after formatting

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Correct floating version regression tests

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Remove temporary validation wiring

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Cache checksum-less floating artifacts by their response fingerprint

Oracle and Oracle GraalVM do not always publish a `.sha256` sibling next
to a `/latest/` artifact. Those floating releases were excluded from both
the resolution cache and the JDK cache, so `cache-jdk` users lost caching
entirely for them.

A floating URL is a constant string, so it cannot serve as a cache
identity on its own — a stale entry would be reused forever. Instead,
derive a validator from the headers of the HEAD request that already
resolves the artifact: the ETag when present, otherwise `Last-Modified`
combined with `Content-Length`. Republishing changes the validator, which
changes the cache key, so a new build is downloaded rather than masked.

`getJdkReleaseIdentity` now falls back to that fingerprint before the
URL, and the floating cache gates ask whether the release has a stable
identity (checksum or fingerprint) rather than a checksum specifically. A
floating release with neither is still left uncached.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Bruno Borges <brborges@microsoft.com>
2026-08-05 11:57:27 -04:00
..
basic-validation.yml chore: Harden workflows: least-privilege permissions + zizmor integration (#1039) 2026-06-23 18:10:17 +01:00
benchmark-cache-restore.yml chore(deps): bump actions/upload-artifact from 6 to 7 (#1190) 2026-08-03 10:43:11 -04:00
check-dist.yml chore: Harden workflows: least-privilege permissions + zizmor integration (#1039) 2026-06-23 18:10:17 +01:00
codeql-analysis.yml chore: Harden workflows: least-privilege permissions + zizmor integration (#1039) 2026-06-23 18:10:17 +01:00
e2e-cache.yml Remove legacy Adopt distributions in v6 (#1185) 2026-07-31 15:48:18 -04:00
e2e-local-file.yml Remove legacy Adopt distributions in v6 (#1185) 2026-07-31 15:48:18 -04:00
e2e-publishing.yml Remove legacy Adopt distributions in v6 (#1185) 2026-07-31 15:48:18 -04:00
e2e-smoke.yml Test Temurin 25 on hosted runners (#1172) 2026-07-29 10:41:44 -04:00
e2e-versions.yml Report concrete versions for floating Oracle JDK downloads (#1213) 2026-08-05 11:57:27 -04:00
licensed.yml chore: Harden workflows: least-privilege permissions + zizmor integration (#1039) 2026-06-23 18:10:17 +01:00
publish-immutable-actions.yml chore: Harden workflows: least-privilege permissions + zizmor integration (#1039) 2026-06-23 18:10:17 +01:00
release-new-action-version.yml Bump actions/publish-action from 0.3.0 to 0.4.0 (#912) 2025-12-03 20:46:45 -06:00
update-config-files.yml chore: Harden workflows: least-privilege permissions + zizmor integration (#1039) 2026-06-23 18:10:17 +01:00
zizmor.yml chore(deps): bump actions/setup-python from 6 to 7 (#1143) 2026-07-27 13:38:27 -04:00