Skip to content

Commit 7a475d8

Browse files
authored
Fix template injection (zizmor alert #118) in e2e-versions.yml (#1114)
* Initial plan * Fix template injection alert #118 in e2e-versions.yml --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 92f9362 commit 7a475d8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/e2e-versions.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,10 +722,12 @@ jobs:
722722
env:
723723
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
724724
- name: Verify JAVA_HOME still points to Java 17
725+
env:
726+
JAVA_17_PATH: ${{ steps.setup-java-17.outputs.path }}
725727
run: |
726728
echo "JAVA_HOME=$JAVA_HOME"
727-
echo "Java 17 path=${{ steps.setup-java-17.outputs.path }}"
728-
if [ "$JAVA_HOME" != "${{ steps.setup-java-17.outputs.path }}" ]; then
729+
echo "Java 17 path=$JAVA_17_PATH"
730+
if [ "$JAVA_HOME" != "$JAVA_17_PATH" ]; then
729731
echo "JAVA_HOME should still point to Java 17"
730732
exit 1
731733
fi

0 commit comments

Comments
 (0)