summaryrefslogtreecommitdiff
path: root/.github/workflows/Code-Scanning.yml
diff options
context:
space:
mode:
authorJacob Ronstadt <[email protected]>2025-03-24 15:59:45 -0700
committerGitHub <[email protected]>2025-03-24 15:59:45 -0700
commit52908d7718c6fac2953055db2e5d23537957c7af (patch)
tree95ad6adc9a445f4b9d76dae50380b0bcd3f9a0a2 /.github/workflows/Code-Scanning.yml
parentee6a889a3be4d939898504dbb3e80e3fd2e0eeab (diff)
Update Code-Scanning.yml to use latest windows-drivers pack (#1277)
* Update Code-Scanning.yml to use latest windows-drivers pack * Update Code-Scanning.yml * Update Code-Scanning.yml * Update Code-Scanning.yml * Update Code-Scanning.yml * Update Code-Scanning.yml * Update Code-Scanning.yml * Update Code-Scanning.yml * Update Code-Scanning.yml * Update Code-Scanning.yml * Update Code-Scanning.yml: reduce duplacate code
Diffstat (limited to '.github/workflows/Code-Scanning.yml')
-rw-r--r--.github/workflows/Code-Scanning.yml59
1 files changed, 14 insertions, 45 deletions
diff --git a/.github/workflows/Code-Scanning.yml b/.github/workflows/Code-Scanning.yml
index e843271f..63e155c9 100644
--- a/.github/workflows/Code-Scanning.yml
+++ b/.github/workflows/Code-Scanning.yml
@@ -24,48 +24,8 @@ on:
workflow_dispatch:
jobs:
- analyze-push:
- name: Analysis-Push
- if: github.event_name == 'push'
- runs-on: windows-latest
- permissions:
- actions: read
- contents: read
- security-events: write
-
- strategy:
- fail-fast: false
- matrix:
- language: [ 'cpp' ]
-
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
- with:
- submodules: 'recursive'
- - name: Install Nuget Packages
- run: nuget restore .\packages.config -PackagesDirectory .\packages\
-
- - name: Initialize CodeQL
- uses: github/codeql-action/init@v3
- with:
- languages: ${{ matrix.language }}
- config-file: microsoft/Windows-Driver-Developer-Supplemental-Tools/config/codeql-config.yml@development
- packs: +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@v3
- with:
- category: "/language:${{matrix.language}}"
- analyze-pr:
- name: Analysis-PR
- if: github.event_name == 'pull_request'
+ analyze:
+ name: Analysis
runs-on: windows-latest
permissions:
actions: read
@@ -97,12 +57,21 @@ jobs:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
config-file: microsoft/Windows-Driver-Developer-Supplemental-Tools/config/codeql-config.yml@development
- packs: +microsoft/[email protected]
- - if: matrix.build-mode == 'manual'
+ - 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}}" \ No newline at end of file
+ category: "/language:${{matrix.language}}"