From 98c12245981cc9ea5a806928bf5f045e0b1723dc Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Sat, 28 Jan 2023 11:32:06 +0000 Subject: [PATCH] Update codeql.yml --- .github/workflows/codeql.yml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e891da51..5e813018 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -33,6 +33,10 @@ jobs: fail-fast: false matrix: language: [ 'java' ] + # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] + # Use only 'java' to analyze code written in Java, Kotlin or both + # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both + # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support steps: - name: Checkout repository @@ -42,21 +46,22 @@ jobs: uses: actions/setup-java@v3 with: java-version: '17' - distribution: 'adopt' + distribution: 'temurin' + + # - name: Gradle Build Action + # uses: gradle/gradle-build-action@v2.3.3 + # with: + # gradle-version: 7.6 - name: Initialize CodeQL uses: github/codeql-action/init@v2 with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. + languages: java - - name: Gradle Build Action - uses: gradle/gradle-build-action@v2.3.3 + - uses: gradle/gradle-build-action@v2 with: - gradle-version: 7.6 + # skipping build cache is needed so that all modules will be analyzed + arguments: assemble --no-build-cache - - - name: Perform CodeQL Analysis + - name: Perform CodeQL analysis uses: github/codeql-action/analyze@v2