From bf7b08e83488235a8a6ef9fd8aad66b0fa6087ba Mon Sep 17 00:00:00 2001 From: guoaomen Date: Fri, 9 Dec 2022 11:04:10 +0800 Subject: [PATCH] fix: Set the jdk version of codeQL --- .github/workflows/codeql.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e2b4e3221..5a5bbb556 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -24,6 +24,14 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + # https://github.com/actions/setup-java + - name: Setup Java JDK + uses: actions/setup-java@v3 + with: + distribution: 'adopt' # See 'Supported distributions' for available options + java-version: '8' + cache: 'maven' + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v2