-
Notifications
You must be signed in to change notification settings - Fork 29
67 lines (55 loc) · 1.77 KB
/
codeql.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: CodeQL
on:
push:
branches: [main, release/*]
schedule:
- cron: 30 1 1,15 * * # At 01:30 UTC on the 1st and 15th of every month
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
container:
image: ghcr.io/azure/azure-osconfig/ubuntu20.04-amd64
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
# CodeQL language support https://aka.ms/codeql-docs/language-support
language: [cpp, csharp]
steps:
- uses: actions/checkout@v4
if: matrix.language == 'cpp'
with:
submodules: recursive
clean: true
- uses: actions/checkout@v4
if: matrix.language == 'csharp'
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- run: mkdir build
if: matrix.language == 'cpp'
- name: Generate build
if: matrix.language == 'cpp'
working-directory: build
run: cmake ../src -DCMAKE_build-type=Release -Duse_prov_client=ON -Dhsm_type_symm_key=ON -DCOMPILE_WITH_STRICTNESS=ON -DBUILD_TESTS=OFF -DBUILD_SAMPLES=ON -DBUILD_ADAPTERS=ON -G Ninja
- name: Build azure-osconfig
if: matrix.language == 'cpp'
working-directory: build
run: cmake --build . --config Release
- name: Setup dotnet
if: matrix.language == 'csharp'
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Autobuild
if: matrix.language == 'csharp'
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: '/language:${{matrix.language}}'