@@ -360,7 +360,7 @@ jobs:
360360 run-shadow-scans : false # Run SonarQube scans on all 3 platforms (next, sqc-eu, sqc-us)
361361` ` `
362362
363- ## Inputs
363+ ### Inputs
364364
365365| Input | Description | Default |
366366|-----------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|
@@ -468,10 +468,28 @@ jobs:
468468| `repox-url` | URL for Repox | `https://repox.jfrog.io` |
469469| `repox-artifactory-url` | URL for Repox Artifactory API (overrides repox-url/artifactory if provided) | (optional) |
470470| `sonar-platform` | SonarQube variant - 'next', 'sqc-eu', 'sqc-us', or 'none'. Use 'none' to skip sonar scans | `next` |
471+ | `working-directory` | Relative path under github.workspace to execute the build in | `.` |
471472| `run-shadow-scans` | Enable analysis across all 3 SonarQube platforms (unified platform dogfooding) | `false` |
472473| `cache-paths` | Custom cache paths (multiline). | `~/.gradle/caches`<br>`~/.gradle/wrapper` |
473474| `disable-caching` | Whether to disable Gradle caching entirely | `false` |
474475
476+ > [!TIP]
477+ > When using `working-directory`, Java must be available at root due to a limitation
478+ > of [setup-gradle](https://github.com/gradle/actions/tree/main/setup-gradle).
479+ > For instance, if the `mise.toml` file is in the working directory, and not at root.
480+ >
481+ > ```yaml
482+ > - name: Workaround for setup-gradle which has no working-directory input
483+ > run: |
484+ > cp <working-directory>/mise.toml mise.toml
485+ > - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0
486+ > with:
487+ > version: 2025.7.12
488+ > - uses: SonarSource/ci-github-actions/build-gradle@v1
489+ > with:
490+ > working-directory: <working-directory>
491+ > ```
492+
475493# ## Outputs
476494
477495| Output | Description |
0 commit comments