diff --git a/.github/workflows/build-reusable.yaml b/.github/workflows/build-reusable.yaml index d90aee0b..a80f728b 100644 --- a/.github/workflows/build-reusable.yaml +++ b/.github/workflows/build-reusable.yaml @@ -60,6 +60,9 @@ on: env: MAVEN_ARGS: ${{ inputs.maven-args }} + # Keep `maven.multiModuleProjectDirectory` a native Windows path under `shell: bash`, + # See https://github.com/apache/maven/issues/12537 for context. + MAVEN_BASEDIR: ${{ github.workspace }} # Explicitly drop all permissions inherited from the caller for security. # Reference: https://docs.github.com/en/actions/sharing-automations/reusing-workflows#access-and-permissions diff --git a/.github/workflows/verify-reproducibility-reusable.yaml b/.github/workflows/verify-reproducibility-reusable.yaml index 99f791e6..e8728caa 100644 --- a/.github/workflows/verify-reproducibility-reusable.yaml +++ b/.github/workflows/verify-reproducibility-reusable.yaml @@ -38,6 +38,9 @@ on: env: MAVEN_ARGS: ${{ inputs.maven-args }} NEXUS_URL: ${{ inputs.nexus-url }} + # Keep `maven.multiModuleProjectDirectory` a native Windows path under `shell: bash`, + # See https://github.com/apache/maven/issues/12537 for context. + MAVEN_BASEDIR: ${{ github.workspace }} # Explicitly drop all permissions inherited from the caller for security. # Reference: https://docs.github.com/en/actions/sharing-automations/reusing-workflows#access-and-permissions