Skip to content

Commit fb15fbc

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

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
config-file: ./.github/codeql-config.yml
40+
41+
- name: Perform CodeQL Analysis
42+
uses: github/codeql-action/[email protected]
43+
with:
44+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)