Skip to content

Commit ea069c7

Browse files
Copilotgkorland
andcommitted
feat: add CodeQL workflow with c-cpp only, removing csharp
Co-authored-by: gkorland <753206+gkorland@users.noreply.github.com>
1 parent 2507f46 commit ea069c7

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ "staging", "main" ]
6+
pull_request:
7+
branches: [ "staging", "main" ]
8+
schedule:
9+
- cron: '0 0 * * 1'
10+
11+
jobs:
12+
analyze:
13+
name: Analyze (${{ matrix.language }})
14+
runs-on: ubuntu-latest
15+
permissions:
16+
security-events: write
17+
packages: read
18+
actions: read
19+
contents: read
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
include:
25+
- language: c-cpp
26+
build-mode: autobuild
27+
28+
steps:
29+
- name: Checkout repository
30+
uses: actions/checkout@v4
31+
32+
- name: Initialize CodeQL
33+
uses: github/codeql-action/init@v3
34+
with:
35+
languages: ${{ matrix.language }}
36+
build-mode: ${{ matrix.build-mode }}
37+
38+
- if: matrix.build-mode == 'autobuild'
39+
name: Autobuild
40+
uses: github/codeql-action/autobuild@v3
41+
42+
- name: Perform CodeQL Analysis
43+
uses: github/codeql-action/analyze@v3
44+
with:
45+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)