From 71181e9bba1271fd5555975213cad8bdf1789a39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Bacsk=C3=B3?= <40074203+Falcosoft@users.noreply.github.com> Date: Mon, 26 Feb 2024 22:40:14 +0100 Subject: [PATCH] Create codeql.yml Just trying to configure CodeQL. --- .github/workflows/codeql.yml | 46 ++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..35b1a26 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,46 @@ +name: CodeQL + +on: + push: + branches: ["master"] + pull_request: + branches: ["master"] + paths-ignore: + - '**/*.md' + - '**/*.txt' + - '**/*.mrc' + - '**/*.png' + - '**/*.svg' + +env: + # Path to the solution file relative to the root of the project. + SOLUTION_FILE_PATH: vstdriver.sln + +jobs: + Analyze: + runs-on: windows-2019 + + strategy: + fail-fast: false + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: cpp + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v1.1 + + - name: Build debuggable x64 + working-directory: ${{ github.workspace }} + run: msbuild /m /p:Configuration="Debug" /p:Platform="x64" /p:PlatformToolset=v142 ${{ env.SOLUTION_FILE_PATH }} + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2