Skip to content

Commit 9ae1beb

Browse files
authored
build: add codeql (#405)
1 parent 3bd4b3c commit 9ae1beb

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: "CodeQL"
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * 1'
6+
7+
permissions:
8+
contents: read
9+
security-events: write
10+
pull-requests: read
11+
actions: read
12+
13+
jobs:
14+
analyze:
15+
name: Analyze
16+
17+
runs-on: ubuntu-latest
18+
19+
permissions:
20+
actions: read
21+
contents: read
22+
security-events: write
23+
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
language: [ 'cpp', 'python' ]
28+
29+
steps:
30+
- name: Checkout repository
31+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
32+
33+
# Initializes the CodeQL tools for scanning.
34+
- name: Initialize CodeQL
35+
uses: github/codeql-action/init@32dc499307d133bb5085bae78498c0ac2cf762d5 # v2.2.5
36+
with:
37+
languages: ${{ matrix.language }}
38+
39+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
40+
# If this step fails, then you should remove it and run the build manually (see below)
41+
- name: Autobuild
42+
uses: github/codeql-action/autobuild@32dc499307d133bb5085bae78498c0ac2cf762d5 # v2.2.5
43+
44+
- name: Perform CodeQL Analysis
45+
uses: github/codeql-action/analyze@32dc499307d133bb5085bae78498c0ac2cf762d5 # v2.2.5
46+
with:
47+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)