diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index d73c3bd6..df88bd55 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -48,6 +48,11 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - name: Set up JDK 17 + uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4 + with: + java-version: '17' + distribution: 'temurin' # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/smoke-tests.yml b/.github/workflows/smoke-tests.yml index 16069c75..59f0e324 100644 --- a/.github/workflows/smoke-tests.yml +++ b/.github/workflows/smoke-tests.yml @@ -15,6 +15,11 @@ jobs: steps: - name: checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - name: Set up JDK 17 + uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4 + with: + java-version: '17' + distribution: 'temurin' - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4 with: path: /root/.jbang @@ -30,4 +35,4 @@ jobs: env: JBANG_REPO: /root/.jbang/repository GITHUB_TOKEN: $ - WORKING_DIRECTORY: ${{ env.working-directory }} \ No newline at end of file + WORKING_DIRECTORY: ${{ env.working-directory }}