-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (50 loc) · 1.17 KB
/
codeql.yml
File metadata and controls
58 lines (50 loc) · 1.17 KB
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
name: CodeQL Security Analysis
on:
push:
paths-ignore:
- '**/*.md'
- '**/*.txt'
- '**/.gitignore'
- '**/LICENSE*'
- '**/README*'
branches-ignore:
- 'dependabot/**'
pull_request:
paths-ignore:
- '**/*.md'
- '**/*.txt'
- '**/.gitignore'
- '**/LICENSE*'
- '**/README*'
branches-ignore:
- 'dependabot/**'
schedule:
- cron: '0 0 1 * *' # 每月1号运行
workflow_dispatch:
jobs:
analyze:
name: CodeQL Analysis
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Setup Python
uses: actions/setup-python@v6
- name: Install uv and dependencies
run: |
pip install uv
uv sync --dev
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: python
- name: Autobuild
uses: github/codeql-action/autobuild@v4
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4