From ec02b1ed8cb2de568652f919b4f4d7475ec255b8 Mon Sep 17 00:00:00 2001 From: Nick Banks Date: Fri, 27 Dec 2024 09:19:37 -0600 Subject: [PATCH] Add CodeQL Support --- .github/workflows/build.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 50dbf670..dc38b356 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,9 +48,23 @@ jobs: - name: Install NASM if: runner.os == 'Windows' uses: ilammy/setup-nasm@13cbeb366c45c4379d3478cdcbadd8295feb5028 + - name: Initialize CodeQL + if: ${{ (matrix.os == 'ubuntu') && (matrix.tls == 'openssl') && (matrix.link == 'shared') && (matrix.config == 'Release') }} + uses: github/codeql-action/init@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 + with: + languages: c-cpp + build-mode: manual + config: | + paths-ignore: + - msquic - name: Build shell: pwsh run: ./.github/workflows/build.ps1 -Config ${{ matrix.config }} -Tls ${{ matrix.tls }} -Link ${{ matrix.link }} -BuildId ${{ github.run_number }} -Suffix "-official" -WithTests -WithTools -Debug + - name: Perform CodeQL Analysis + if: ${{ (matrix.os == 'ubuntu') && (matrix.tls == 'openssl') && (matrix.link == 'shared') && (matrix.config == 'Release') }} + uses: github/codeql-action/analyze@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 + with: + category: "/language:c-cpp" - name: Upload uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b with: