mirror of
https://github.com/gradle/actions.git
synced 2026-06-14 15:40:57 +00:00
e0e493dd02
Resolves the Develocity access key matching a given server URL, for threading into the new develocityAccessToken cache option (next commit). Reuses DevelocityAccessCredentials.parse and fails closed (returns undefined) when the access key is empty/malformed, the server URL is empty/unparseable, or no key matches the server host. Tolerates a bare hostname with no scheme. Extends short-lived-token.test.ts with coverage for full URLs, bare hostnames, host-only matching (ignoring scheme/port/path), multi-key selection, and the fail-closed cases. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>