Skip to content

Commit

Permalink
Fix CodeQL to run only once per workflow (#4721)
Browse files Browse the repository at this point in the history
  • Loading branch information
ranisalt authored Jun 2, 2024
1 parent 855cd3b commit dc91b3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-vcpkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
languages: cpp
# 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
if: ${{ matrix.os }} == "ubuntu" && ${{ matrix.buildtype }} == "Debug"
if: matrix.os == "ubuntu" && matrix.buildtype == "Debug"

- name: Get latest CMake
# Using 'latest' branch, the latest CMake is installed.
Expand All @@ -66,7 +66,7 @@ jobs:
uses: github/codeql-action/analyze@v3
with:
category: "/language:cpp"
if: ${{ matrix.os }} == "ubuntu" && ${{ matrix.buildtype }} == "Debug"
if: matrix.os == "ubuntu" && matrix.buildtype == "Debug"

- name: Upload artifact binary
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit dc91b3d

Please sign in to comment.