-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (42 loc) · 1.44 KB
/
codeql.yml
File metadata and controls
54 lines (42 loc) · 1.44 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
name: "CodeQL"
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: ['*']
permissions:
contents: read
jobs:
analyze:
name: CodeQL Analysis
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- uses: actions/checkout@v6
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: python
# If you wish to specify custom queries, you can do so here or in a config file.
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
# Use the security-and-quality query pack, which includes a broad set of queries for both security and code quality issues.
queries: security-and-quality
- name: Analyze
uses: github/codeql-action/analyze@v3
codespell:
name: Spell Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Run codespell
uses: codespell-project/actions-codespell@v2
with:
skip: build,dist,__pycache__,*.lock,.git,.venv
ignore_words_list: nd,ot,te
check_filenames: true