summaryrefslogtreecommitdiff
path: root/.github/workflows/Code-Scanning.yml
diff options
context:
space:
mode:
authorDavid Spruill <[email protected]>2026-01-08 17:51:47 -0500
committerGitHub <[email protected]>2026-01-08 17:51:47 -0500
commitc5fc3ca1fd0e00a7e085ef48abfeff9c0c39817e (patch)
tree0e650a0fee8027816bbea82ca1fd9b8e3e6ee24a /.github/workflows/Code-Scanning.yml
parentf88e4fbbd4d2671e5cd77e4f60be7a235326797e (diff)
parented3dbe56378117a15105099870f2397671ad99ab (diff)
Merge branch 'develop' into user/daspr/kmodsamplefix
Diffstat (limited to '.github/workflows/Code-Scanning.yml')
-rw-r--r--.github/workflows/Code-Scanning.yml70
1 files changed, 44 insertions, 26 deletions
diff --git a/.github/workflows/Code-Scanning.yml b/.github/workflows/Code-Scanning.yml
index fc1ae7e8..63e155c9 100644
--- a/.github/workflows/Code-Scanning.yml
+++ b/.github/workflows/Code-Scanning.yml
@@ -8,11 +8,17 @@ on:
branches:
- main
- develop
+ paths-ignore:
+ - '**.md'
+ - 'LICENSE'
pull_request:
# The branches below must be a subset of the branches above
branches:
- main
- develop
+ paths-ignore:
+ - '**.md'
+ - 'LICENSE'
# Allow manual scheduling
workflow_dispatch:
@@ -29,31 +35,43 @@ jobs:
strategy:
fail-fast: false
matrix:
- language: [ 'cpp' ]
+ include:
+ - language: c-cpp
+ build-mode: manual
steps:
- - name: Checkout repository
- uses: actions/checkout@v3
- with:
- submodules: 'recursive'
-
- - name: Initialize CodeQL
- uses: github/codeql-action/init@v2
- with:
- languages: ${{ matrix.language }}
-
- - name: Add MSBuild to PATH
- uses: microsoft/[email protected]
-
- - name: Retrieve and build all available solutions
- run: |
- .\Build-AllSamples.ps1 -Verbose -ThrottleLimit 1
- env:
- WDS_Configuration: Debug
- WDS_Platform: x64
- WDS_WipeOutputs: ${{ true }}
-
- - name: Perform CodeQL analysis
- uses: github/codeql-action/analyze@v2
- with:
- category: "/language:${{matrix.language}}"
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ with:
+ submodules: 'recursive'
+ - name: Install Nuget Packages
+ run: nuget restore .\packages.config -PackagesDirectory .\packages\
+ - name: Get changed files
+ id: get-changed-files
+ uses: tj-actions/changed-files@v41
+ with:
+ separator: ","
+ - name: Initialize CodeQL
+ uses: github/codeql-action/init@v3
+ with:
+ languages: ${{ matrix.language }}
+ build-mode: ${{ matrix.build-mode }}
+ config-file: microsoft/Windows-Driver-Developer-Supplemental-Tools/config/codeql-config.yml@development
+ - if: github.event_name == 'pull_request'
+ run: |
+ $changedFiles = "${{ steps.get-changed-files.outputs.all_changed_files }}".Split(',')
+ .\.github\scripts\Build-ChangedSamples.ps1 -ChangedFiles $changedFiles -Verbose
+ env:
+ WDS_Configuration: Debug
+ WDS_Platform: x64
+ WDS_WipeOutputs: ${{ true }}
+ - if: github.event_name == 'push'
+ run: .\Build-AllSamples.ps1 -Verbose -ThrottleLimit 1
+ env:
+ WDS_Configuration: Debug
+ WDS_Platform: x64
+ WDS_WipeOutputs: ${{ true }}
+ - name: Perform CodeQL analysis
+ uses: github/codeql-action/analyze@v3
+ with:
+ category: "/language:${{matrix.language}}"