1111 paths-ignore :
1212 - ' **.md'
1313
14+ permissions :
15+ contents : read
16+
1417jobs :
1518 setup-java-local-file-adopt :
1619 name : Validate installation from local file Adopt
2225 steps :
2326 - name : Checkout
2427 uses : actions/checkout@v7
28+ with :
29+ persist-credentials : false
2530 - name : Download Adopt OpenJDK file
2631 run : |
2732 if ($IsLinux) {
4651 java-version : ' 11.0.0-ea'
4752 architecture : x64
4853 - name : Verify Java version
49- run : bash __tests__/verify-java.sh "11.0.10" "${{ steps.setup-java.outputs.path }}"
54+ env :
55+ JAVA_PATH : ${{ steps.setup-java.outputs.path }}
56+ run : bash __tests__/verify-java.sh "11.0.10" "$JAVA_PATH"
5057 shell : bash
5158
5259 setup-java-local-file-zulu :
5966 steps :
6067 - name : Checkout
6168 uses : actions/checkout@v7
69+ with :
70+ persist-credentials : false
6271 - name : Download Zulu OpenJDK file
6372 run : |
6473 if ($IsLinux) {
8392 java-version : ' 11.0.0-ea'
8493 architecture : x64
8594 - name : Verify Java version
86- run : bash __tests__/verify-java.sh "11.0" "${{ steps.setup-java.outputs.path }}"
95+ env :
96+ JAVA_PATH : ${{ steps.setup-java.outputs.path }}
97+ run : bash __tests__/verify-java.sh "11.0" "$JAVA_PATH"
8798 shell : bash
8899
89100 setup-java-local-file-temurin :
96107 steps :
97108 - name : Checkout
98109 uses : actions/checkout@v7
110+ with :
111+ persist-credentials : false
99112 - name : Download Eclipse Temurin file
100113 run : |
101114 if ($IsLinux) {
@@ -120,5 +133,7 @@ jobs:
120133 java-version : ' 11.0.0-ea'
121134 architecture : x64
122135 - name : Verify Java version
123- run : bash __tests__/verify-java.sh "11.0.12" "${{ steps.setup-java.outputs.path }}"
136+ env :
137+ JAVA_PATH : ${{ steps.setup-java.outputs.path }}
138+ run : bash __tests__/verify-java.sh "11.0.12" "$JAVA_PATH"
124139 shell : bash
0 commit comments