mirror of
https://github.com/gradle/actions.git
synced 2026-06-15 16:10:39 +00:00
f4925085d0
Have setupToken take the DevelocityConfig and return the short-lived JWT matching the configured Develocity server, replacing resolveAccessKeyForServer with resolveTokenForServer. Call setupToken directly from setup-gradle's setup() (split out of buildScan.setup), persist the resolved token via core.saveState, and read it back in complete(). cacheOptionsFrom now takes the server URL and access token as parameters. This ensures CacheOptions.develocityAccessToken is always the resolved short-lived JWT on both restore and save, regardless of whether the access key was supplied as an action input or env var. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>