From 8b59a28bb970af73005ff105345eea460314928e Mon Sep 17 00:00:00 2001 From: Tamas K Lengyel Date: Tue, 16 Jan 2024 12:23:30 -0500 Subject: [PATCH] Fix CodeQL language def (c-cpp) --- .github/workflows/ci.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8e01f4c..c70ac35 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,7 @@ jobs: permissions: security-events: write contents: read + actions: read runs-on: ${{ matrix.os }} strategy: matrix: @@ -105,6 +106,12 @@ jobs: git submodule update --init libxdc tar czvf libxdc.tar.gz libxdc + - name: Initialize CodeQL + if: ${{ matrix.os }} == 'ubuntu-latest' + uses: github/codeql-action/init@v3 + with: + languages: 'c-cpp' + - name: Compile kfx run: | export INSTALLDIR="$PWD/install" @@ -117,6 +124,12 @@ jobs: make -j2 make install + - name: Perform CodeQL Analysis + if: ${{ matrix.os }} == 'ubuntu-latest' + uses: github/codeql-action/analyze@v3 + with: + category: "/language:c-cpp" + - name: Scan build run: | export INSTALLDIR="$PWD/install" @@ -189,9 +202,3 @@ jobs: path: | kfx.*.tar.gz source.*.tar.gz - - - name: Perform CodeQL Analysis - if: ${{ matrix.os }} == 'ubuntu-latest' - uses: github/codeql-action/analyze@v3 - with: - category: "/language:c"