From f2629cfa70127d018a06a2cc3a360f81a4475dd3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 14 Jul 2026 19:38:17 +0000 Subject: [PATCH] Fix template injection (alert #123) in e2e-versions.yml --- .github/workflows/e2e-versions.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/e2e-versions.yml b/.github/workflows/e2e-versions.yml index 0255e510..1118c1cd 100644 --- a/.github/workflows/e2e-versions.yml +++ b/.github/workflows/e2e-versions.yml @@ -756,14 +756,17 @@ jobs: Write-Host "$envName=$JavaVersionPath" shell: pwsh - name: Verify Java 21 outputs are set + env: + JAVA21_PATH: ${{ steps.setup-java-21.outputs.path }} + JAVA21_VERSION: ${{ steps.setup-java-21.outputs.version }} run: | - echo "Java 21 path=${{ steps.setup-java-21.outputs.path }}" - echo "Java 21 version=${{ steps.setup-java-21.outputs.version }}" - if [ -z "${{ steps.setup-java-21.outputs.path }}" ]; then + echo "Java 21 path=$JAVA21_PATH" + echo "Java 21 version=$JAVA21_VERSION" + if [ -z "$JAVA21_PATH" ]; then echo "Java 21 path output should be set" exit 1 fi - if [ -z "${{ steps.setup-java-21.outputs.version }}" ]; then + if [ -z "$JAVA21_VERSION" ]; then echo "Java 21 version output should be set" exit 1 fi