Skip to content

Commit 4e263ff

Browse files
committed
gh-actions: Run codeql
Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent e8cd2c9 commit 4e263ff

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# This workflow runs the latest CodeQL CLI and checks against CodeQL's Cpp library.
2+
# This is the source for the GitHub Security Code Scanning job.
3+
4+
name: "CodeQL Analysis"
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
- develop
11+
paths-ignore:
12+
- '**.md'
13+
- 'LICENSE'
14+
pull_request:
15+
# The branches below must be a subset of the branches above
16+
branches:
17+
- main
18+
- develop
19+
paths-ignore:
20+
- '**.md'
21+
- 'LICENSE'
22+
23+
# Allow manual scheduling
24+
workflow_dispatch:
25+
26+
jobs:
27+
analyze:
28+
name: Analysis
29+
runs-on: windows-latest
30+
permissions:
31+
actions: read
32+
contents: read
33+
security-events: write
34+
35+
strategy:
36+
fail-fast: false
37+
matrix:
38+
language: [ 'cpp' ]
39+
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@v4
43+
with:
44+
submodules: 'recursive'
45+
- name: Install Nuget Packages
46+
run: nuget restore .\packages.config -PackagesDirectory .\packages\
47+
48+
- name: Initialize CodeQL
49+
uses: github/codeql-action/init@v3
50+
with:
51+
languages: ${{ matrix.language }}
52+
config-file: microsoft/Windows-Driver-Developer-Supplemental-Tools/config/codeql-config.yml@development
53+
packs: +microsoft/windows-drivers@1.2.0-beta
54+
- name: Retrieve and build all available solutions
55+
run: |
56+
msbuild FrameworkSensors\FrameworkSensors.sln /property:Configuration=Debug /property:Platform=x64
57+
58+
- name: Perform CodeQL analysis
59+
uses: github/codeql-action/analyze@v3
60+
with:
61+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)