Loading
Sign in before continuing.
Commits on Source 3
-
Inaki Villar authored
The npm builds and the demo job summary used the long-lived DV_SOLUTIONS_ACCESS_KEY. They now mint a GitHub OIDC token for solutions.develocity.cloud. The npm agent reads DEVELOCITY_ACCESS_KEY directly, so for it the token is exchanged for a short-lived Develocity access token first. Signed-off-by:Inaki Villar <[email protected]>
-
Iñaki Villar authored
## Changes Moves the workflows that publish to solutions.develocity.cloud from the long-lived `DV_SOLUTIONS_ACCESS_KEY` to GitHub OIDC tokens, using Develocity workload identity. - **`ci-check-and-unit-test.yml` and `ci-update-dist.yml`**: the Develocity npm agent reads `DEVELOCITY_ACCESS_KEY` directly, and an OIDC token can't be used there. A pre-step mints the OIDC token and exchanges it at `/api/auth/token?expiresInHours=2`, the call setup-gradle makes, for a short-lived Develocity access token. The npm steps read it from `steps.develocity-oidc.outputs.token-access-key`. - **`demo-job-summary.yml`** (`develocity-access-key-set` job): a pre-step mints the OIDC token and passes it to `setup-gradle` as `develocity-access-key` in `host=token` form. setup-gradle exchanges it, the same as it does with an access key. Each job gets `id-token: write`. Pull requests from forks get no OIDC token, just as they get no secrets today: the step warns and exits cleanly, and the builds run unauthenticated. ## Not in this PR `suite-integ-test-other.yml` still passes `DV_SOLUTIONS_ACCESS_KEY` to `integ-test-inject-develocity.yml`. Those jobs test setup-gradle's own access-key handling: swapping a classic access key for a short-lived token, the `GRADLE_ENTERPRISE_ACCESS_KEY` variant, and not leaking the key when the exchange fails. Feeding them an OIDC token would still run the exchange, but would stop covering the classic access-key path. Should they keep a long-lived key on purpose? ## Verification - [x] CI-check-and-unit-test on this PR ([run 41095618008](https://github.com/gradle/actions/actions/runs/41095618008)): green, the OIDC token is exchanged, and the npm agent published Build Scans to solutions.develocity.cloud, for example [ejvi6m5cprrhg](https://solutions.develocity.cloud/s/ejvi6m5cprrhg) and [goncdygtosovo](https://solutions.develocity.cloud/s/goncdygtosovo) - [x] Demo Job Summary dispatched on this branch ([run 41095628373](https://github.com/gradle/actions/actions/runs/41095628373)), `develocity-access-key-set` job: green, setup-gradle logs `Requesting short-lived Develocity access token for solutions.develocity.cloud` with no warning. The sample project publishes to scans.gradle.com, as before. - [ ] CI-update-dist runs only on `main`/release branches and commits `dist`, so it is verified after merge
-
bot-githubaction authored
Release notes of Gradle 9.9.0 can be found here: https://docs.gradle.org/9.9.0/release-notes.html Signed-off-by:
bot-githubaction <[email protected]>