diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index f7d18f9d4..7fcae15f8 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -40,10 +40,12 @@ jobs: - name: aarch64-pc-windows-msvc arch: arm64 - include: - - language: c-cpp - build-mode: manual - + codeql: + - language: c-cpp + build-mode: manual + - language: rust + build-mode: none + steps: - name: Checkout repository uses: actions/checkout@v4 @@ -86,15 +88,15 @@ jobs: - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: - languages: ${{ matrix.language }} - build-mode: ${{ matrix.build-mode }} + languages: ${{ matrix.codeql.language }} + build-mode: ${{ matrix.codeql.build-mode }} queries: security-extended,security-and-quality - - if: matrix.build-mode == 'manual' + - if: matrix.codeql.build-mode == 'manual' working-directory: ./examples run: cargo +${{ matrix.rust_toolchain }} make default --locked --profile ${{ matrix.cargo_profile }} --target ${{ matrix.target_triple.name }} --workspace --all-features - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 with: - category: "/language:${{matrix.language}}" + category: "/language:${{matrix.codeql.language}}"