Skip to content

Commit d6f7acc

Browse files
committed
ci: set up CodeQL analysis
1 parent 1fd7f3a commit d6f7acc

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/codeql.yml

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

0 commit comments

Comments
 (0)