mirror of
https://github.com/actions/setup-java.git
synced 2026-07-16 13:52:59 +00:00
Fix template injection (zizmor alert #121) in e2e-versions.yml
This commit is contained in:
committed by
GitHub
parent
32a69ae090
commit
2c8eb88e69
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user