Fix template injection alert #118 in e2e-versions.yml

This commit is contained in:
copilot-swe-agent[bot] 2026-07-14 19:04:12 +00:00 committed by GitHub
parent 457de39f8e
commit 736da8632e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -722,10 +722,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Verify JAVA_HOME still points to Java 17
env:
JAVA_17_PATH: ${{ steps.setup-java-17.outputs.path }}
run: |
echo "JAVA_HOME=$JAVA_HOME"
echo "Java 17 path=${{ steps.setup-java-17.outputs.path }}"
if [ "$JAVA_HOME" != "${{ steps.setup-java-17.outputs.path }}" ]; then
echo "Java 17 path=$JAVA_17_PATH"
if [ "$JAVA_HOME" != "$JAVA_17_PATH" ]; then
echo "JAVA_HOME should still point to Java 17"
exit 1
fi