Loading
Sign in before continuing.
Commits on Source 26
-
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
-
Iñaki Villar authored
The Develocity injection integration tests no longer use the long-lived DV_SOLUTIONS_ACCESS_KEY. The jobs that publish Build Scans pass a GitHub OIDC token as the access key, which setup-gradle exchanges for a short-lived token like any access key. The short-lived token failure job uses a fake access key.
-
Iñaki Villar authored
Use the same pre-step as #1109 instead of a composite action, drop the extra exchange check and the fake access key.
-
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]>
-
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]>
-
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]>
-
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]>
-
Iñaki Villar authored
Bump Gradle Wrapper from 9.8.2 to 9.9.0. Release notes of Gradle 9.9.0 can be found here: https://docs.gradle.org/9.9.0/release-notes.html
-
Iñaki Villar authored
Bump Gradle Wrapper from 9.8.2 to 9.9.0. Release notes of Gradle 9.9.0 can be found here: https://docs.gradle.org/9.9.0/release-notes.html
-
Iñaki Villar authored
Bump Gradle Wrapper from 9.8.2 to 9.9.0. Release notes of Gradle 9.9.0 can be found here: https://docs.gradle.org/9.9.0/release-notes.html
-
Iñaki Villar authored
Bump Gradle Wrapper from 9.8.2 to 9.9.0. Release notes of Gradle 9.9.0 can be found here: https://docs.gradle.org/9.9.0/release-notes.html
-
bot-githubaction authored
Release notes of Gradle 9.9.1 can be found here: https://docs.gradle.org/9.9.1/release-notes.html Signed-off-by:
bot-githubaction <[email protected]>
-
bot-githubaction authored
Release notes of Gradle 9.9.1 can be found here: https://docs.gradle.org/9.9.1/release-notes.html Signed-off-by:
bot-githubaction <[email protected]>
-
bot-githubaction authored
Release notes of Gradle 9.9.1 can be found here: https://docs.gradle.org/9.9.1/release-notes.html Signed-off-by:
bot-githubaction <[email protected]>
-
bot-githubaction authored
Release notes of Gradle 9.9.1 can be found here: https://docs.gradle.org/9.9.1/release-notes.html Signed-off-by:
bot-githubaction <[email protected]>
-
Iñaki Villar authored
Bump Gradle Wrapper from 9.9.0 to 9.9.1. Release notes of Gradle 9.9.1 can be found here: https://docs.gradle.org/9.9.1/release-notes.html
-
Iñaki Villar authored
Bump Gradle Wrapper from 9.9.0 to 9.9.1. Release notes of Gradle 9.9.1 can be found here: https://docs.gradle.org/9.9.1/release-notes.html
-
Iñaki Villar authored
Bump Gradle Wrapper from 9.8.2 to 9.9.1. Release notes of Gradle 9.9.1 can be found here: https://docs.gradle.org/9.9.1/release-notes.html
-
Iñaki Villar authored
Bump Gradle Wrapper from 9.9.0 to 9.9.1. Release notes of Gradle 9.9.1 can be found here: https://docs.gradle.org/9.9.1/release-notes.html
-
Iñaki Villar authored
## Changes Follow-up to #1109. That PR left `suite-integ-test-other.yml` on `DV_SOLUTIONS_ACCESS_KEY`. `integ-test-inject-develocity.yml` now gets a GitHub OIDC token, in `solutions.develocity.cloud=<token>` form, from the same pre-step as #1109. The token goes where the access key went before: - **`inject-develocity`**: the `DEVELOCITY_ACCESS_KEY` / `GRADLE_ENTERPRISE_ACCESS_KEY` env var, set per matrix entry through `$GITHUB_ENV` - **`inject-develocity-with-access-key`**: the `develocity-access-key` input - **`inject-develocity-short-lived-token-failed`**: both env vars and the input - **`inject-develocity-with-access-key-from-input-actions`**: the `DEVELOCITY_ACCESS_KEY` env var setup-gradle exchanges the OIDC token at `/api/auth/token` the same way it exchanges an access key. The `DEVELOCITY_ACCESS_KEY` secret is removed from the reusable workflow. `id-token: write` is granted along the chain: `ci-integ-test*.yml` → `suite-integ-test-other.yml` → the jobs. Fork PRs are already skipped for these jobs. Part of gradle/dv#74660. After this merges, nothing in gradle/actions uses `DV_SOLUTIONS_ACCESS_KEY`. ## Verification - [ ] CI-integ-test on this PR: `develocity-injection` jobs green, Build Scans published to solutions.develocity.cloud
-
Bot Githubaction authored
Updates the develocity-injection init script to the latest reference script content from https://github.com/gradle/develocity-ci-injection.
-
Eric Haag authored
-
Eric Haag authored
-
Eric Haag authored
Updates the develocity-injection init script to the latest reference script content from https://github.com/gradle/develocity-ci-injection.
-
bot-githubaction authored
Release notes of Gradle 9.9.2 can be found here: https://docs.gradle.org/9.9.2/release-notes.html Signed-off-by:
bot-githubaction <[email protected]>