From 3288f126f63b4b86ff2fb1d9f15219edf8825ec7 Mon Sep 17 00:00:00 2001 From: Saptarshi Sarkar Date: Sat, 17 Feb 2024 22:36:12 +0530 Subject: [PATCH 1/2] feat(CI): Added more queries to CodeQL and a step to upload SARIF file --- .github/workflows/codeql.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 27fa45cb2..aa6156863 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -55,12 +55,7 @@ jobs: uses: github/codeql-action/init@v3 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. - - # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs - # queries: security-extended,security-and-quality + queries: security-extended,security-and-quality - name: Setup JDK 21 if: ${{ matrix.language == 'java-kotlin' }} uses: actions/setup-java@v4 @@ -76,3 +71,9 @@ jobs: uses: github/codeql-action/analyze@v3 with: category: "/language:${{matrix.language}}" + - name: Upload SARIF result + uses: github/codeql-action/upload-sarif@v3 + with: + # Optional category for the results + # Used to differentiate multiple results for one commit + category: "/language:${{matrix.language}}" From 7afd77a7a6d2e8c2673b35be69366d7fda8d87d2 Mon Sep 17 00:00:00 2001 From: Saptarshi Sarkar Date: Sat, 17 Feb 2024 22:40:25 +0530 Subject: [PATCH 2/2] fix(CI): Removed `Upload SARIF file` step because it is included as a part of the analyze step --- .github/workflows/codeql.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index aa6156863..240671257 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -71,9 +71,3 @@ jobs: uses: github/codeql-action/analyze@v3 with: category: "/language:${{matrix.language}}" - - name: Upload SARIF result - uses: github/codeql-action/upload-sarif@v3 - with: - # Optional category for the results - # Used to differentiate multiple results for one commit - category: "/language:${{matrix.language}}"