diff --git a/.github/workflows/ci-actions-incremental.yml b/.github/workflows/ci-actions-incremental.yml index 14a08d6701ffe..130660b300b42 100644 --- a/.github/workflows/ci-actions-incremental.yml +++ b/.github/workflows/ci-actions-incremental.yml @@ -110,9 +110,9 @@ jobs: - name: Reclaim Disk Space run: .github/ci-prerequisites.sh - name: Set up JDK 11 - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: 11 - name: Get Date id: get-date @@ -287,9 +287,9 @@ jobs: run: .github/ci-prerequisites.sh - name: Set up JDK ${{ matrix.java.java-version }} - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: ${{ matrix.java.java-version }} - name: Download Maven Repo @@ -363,9 +363,9 @@ jobs: shell: bash run: tar -xzf maven-repo.tgz -C ~ - name: Set up JDK ${{ matrix.java.java-version }} - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: ${{ matrix.java.java-version }} - name: Build # Important: keep -pl ... in sync with "Calculate run flags"! @@ -425,9 +425,9 @@ jobs: shell: bash run: tar -xzf maven-repo.tgz -C ~ - name: Set up JDK ${{ matrix.java.java-version }} - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: ${{ matrix.java.java-version }} - name: Verify dependencies # runs on Windows as well but would require newline conversion, not worth it @@ -481,9 +481,9 @@ jobs: shell: bash run: tar -xzf maven-repo.tgz -C ~ - name: Set up JDK ${{ matrix.java.java-version }} - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: ${{ matrix.java.java-version }} - name: Build # Important: keep -pl ... in sync with "Calculate run flags"! @@ -526,9 +526,9 @@ jobs: - name: Reclaim Disk Space run: .github/ci-prerequisites.sh - name: Set up JDK 11 - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: 11 - name: Download Maven Repo uses: actions/download-artifact@v1 @@ -586,9 +586,9 @@ jobs: - name: Reclaim Disk Space run: .github/ci-prerequisites.sh - name: Set up JDK 11 - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: 11 - name: Install cl.exe if: startsWith(matrix.os-name, 'windows') diff --git a/.github/workflows/ci-actions.yml.disabled b/.github/workflows/ci-actions.yml.disabled index f0232234b5fa9..6dfc23395335a 100644 --- a/.github/workflows/ci-actions.yml.disabled +++ b/.github/workflows/ci-actions.yml.disabled @@ -77,9 +77,9 @@ jobs: - name: Reclaim Disk Space run: .github/ci-prerequisites.sh - name: Set up JDK 11 - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: 11 - name: Get Date id: get-date @@ -162,11 +162,10 @@ jobs: run: .github/ci-prerequisites.sh - name: Set up JDK ${{ matrix.java.name }} - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: ${{ matrix.java.java-version }} - release: ${{ matrix.java.release }} - name: Download Maven Repo uses: actions/download-artifact@v1 @@ -202,9 +201,9 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up JDK 11 - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: 11 - name: Download Maven Repo uses: actions/download-artifact@v1 @@ -256,9 +255,9 @@ jobs: shell: bash run: tar -xzf maven-repo.tgz -C ~ - name: Set up JDK ${{ matrix.java.name }} - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: ${{ matrix.java.java-version }} - name: Run Maven integration tests run: eval ./mvnw $JVM_TEST_MAVEN_OPTS install -pl 'integration-tests/maven' @@ -293,9 +292,9 @@ jobs: shell: bash run: tar -xzf maven-repo.tgz -C ~ - name: Set up JDK 11 - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: 11 - name: Run Maven integration tests shell: bash @@ -337,9 +336,9 @@ jobs: shell: bash run: tar -xzf maven-repo.tgz -C ~ - name: Set up JDK ${{ matrix.java.name }} - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: ${{ matrix.java.java-version }} - name: Build with Gradle uses: eskatos/gradle-command-action@v1 @@ -361,9 +360,9 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up JDK 11 - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: 11 - name: Download Maven Repo uses: actions/download-artifact@v1 @@ -410,9 +409,9 @@ jobs: shell: bash run: tar -xzf maven-repo.tgz -C ~ - name: Set up JDK ${{ matrix.java.name }} - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: ${{ matrix.java.java-version }} - name: Run Devtools integration tests run: eval ./mvnw $JVM_TEST_MAVEN_OPTS install -pl 'integration-tests/devtools' @@ -447,9 +446,9 @@ jobs: shell: bash run: tar -xzf maven-repo.tgz -C ~ - name: Set up JDK 11 - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: 11 - name: Run Devtools integration tests shell: bash @@ -486,9 +485,9 @@ jobs: run: .github/ci-prerequisites.sh working-directory: ./tcks - name: Set up JDK 11 - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: 11 - name: Download Maven Repo uses: actions/download-artifact@v1 @@ -545,9 +544,9 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up JDK 11 - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: 11 - name: Reclaim Disk Space run: .github/ci-prerequisites.sh diff --git a/.github/workflows/ci-fork-mvn-cache.yml b/.github/workflows/ci-fork-mvn-cache.yml index 1335136aebe24..db6b7bd57fc58 100644 --- a/.github/workflows/ci-fork-mvn-cache.yml +++ b/.github/workflows/ci-fork-mvn-cache.yml @@ -42,9 +42,9 @@ jobs: - name: Reclaim Disk Space run: .github/ci-prerequisites.sh - name: Set up JDK 11 - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: 11 - name: Get Date id: get-date diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index a058689f7674e..310af5b6b7276 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -29,12 +29,13 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 with: - fetch-depth: 1 - ref: main + fetch-depth: 1 + ref: main - name: Setup Java JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: - java-version: 11 + distribution: temurin + java-version: 11 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/deploy-snapshots.yml b/.github/workflows/deploy-snapshots.yml index 0222febe91553..07f41b0e87d87 100644 --- a/.github/workflows/deploy-snapshots.yml +++ b/.github/workflows/deploy-snapshots.yml @@ -21,9 +21,9 @@ jobs: - name: Reclaim Disk Space run: .github/ci-prerequisites.sh - name: Set up JDK 11 - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: 11 - name: Get Date id: get-date diff --git a/.github/workflows/doc-build.yml b/.github/workflows/doc-build.yml index 091578796dbb7..31cfdc41fedfb 100644 --- a/.github/workflows/doc-build.yml +++ b/.github/workflows/doc-build.yml @@ -32,9 +32,9 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} - name: Set up JDK 11 - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: 11 - name: Get Date id: get-date diff --git a/.github/workflows/jdk-early-access-build.yml b/.github/workflows/jdk-early-access-build.yml index e450a2b87b727..b8f43c50a9cff 100644 --- a/.github/workflows/jdk-early-access-build.yml +++ b/.github/workflows/jdk-early-access-build.yml @@ -32,8 +32,9 @@ jobs: - name: Set up JDK # AdoptOpenJDK does not seem to provide EA builds, so use the standard action which provides a Zulu JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: ${{ env.JDK_VERSION }} - name: Print Java version shell: bash diff --git a/.github/workflows/native-cron-build.yml.disabled b/.github/workflows/native-cron-build.yml.disabled index 9d1f5a9629cf2..8eb639aa81ba1 100644 --- a/.github/workflows/native-cron-build.yml.disabled +++ b/.github/workflows/native-cron-build.yml.disabled @@ -23,17 +23,17 @@ jobs: run: docker pull quay.io/quarkus/ubi-quarkus-native-image:20.2.0-java${{ matrix.java }} - name: Set up JDK ${{ matrix.java }} - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 if: matrix.java != '8' with: + distribution: temurin java-version: ${{ matrix.java }} - name: Set up JDK ${{ matrix.java }} - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 if: matrix.java == '8' with: + distribution: temurin java-version: ${{ matrix.java }} # stay on a version before 252 for now because it breaks ALPN handling release: jdk8u242-b08 diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 09bcb8cdbff6b..a8ef00a78939b 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -20,9 +20,9 @@ jobs: - name: Reclaim Disk Space run: .github/ci-prerequisites.sh - name: Set up JDK 11 - # Uses sha for added security since tags can be updated - uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: 11 - name: Create maven repo run: mkdir -p $HOME/release/repository diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 3ab3a3c5f8613..63e977d1f6e60 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -15,8 +15,9 @@ jobs: with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: 11 - name: Get Date id: get-date diff --git a/.github/workflows/sonarcloud.yml.disabled b/.github/workflows/sonarcloud.yml.disabled index aa0856ef4097d..e86dfa4202da7 100644 --- a/.github/workflows/sonarcloud.yml.disabled +++ b/.github/workflows/sonarcloud.yml.disabled @@ -14,8 +14,9 @@ jobs: with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: + distribution: temurin java-version: 11 - name: Get Date id: get-date