2022-12-28 05:32:36 +03:00
|
|
|
# This workflow runs the latest CodeQL CLI and checks against CodeQL's Cpp library.
|
2023-01-10 04:59:25 +03:00
|
|
|
# This is the source for the GitHub Security Code Scanning job.
|
2022-12-28 05:32:36 +03:00
|
|
|
|
|
|
|
name: "CodeQL Analysis"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- develop
|
2024-09-24 05:43:48 +03:00
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
- 'LICENSE'
|
2022-12-28 05:32:36 +03:00
|
|
|
pull_request:
|
|
|
|
# The branches below must be a subset of the branches above
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- develop
|
2024-09-24 05:43:48 +03:00
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
- 'LICENSE'
|
2022-12-28 05:32:36 +03:00
|
|
|
|
|
|
|
# Allow manual scheduling
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
analyze:
|
|
|
|
name: Analysis
|
|
|
|
runs-on: windows-latest
|
|
|
|
permissions:
|
|
|
|
actions: read
|
|
|
|
contents: read
|
|
|
|
security-events: write
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
language: [ 'cpp' ]
|
|
|
|
|
|
|
|
steps:
|
2024-06-28 19:56:29 +03:00
|
|
|
- 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 }}
|
2024-09-26 00:35:52 +03:00
|
|
|
config-file: microsoft/Windows-Driver-Developer-Supplemental-Tools/config/codeql-config.yml@development
|
|
|
|
packs: +microsoft/windows-drivers@1.2.0-beta
|
2024-06-28 19:56:29 +03:00
|
|
|
- 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}}"
|