-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (52 loc) · 2.25 KB
/
Copy pathcodeql-analysis.yml
File metadata and controls
58 lines (52 loc) · 2.25 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
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
name: "CodeQL"
permissions: read-all # Declare default permissions as read only.
on:
push:
branches: ["main"]
paths-ignore: [
"**/*.rst", "**/*.txt", "**/.md", "**/.gitignore", "**/.*rc", "**/*.cfg", "**/*.toml", ".*.ya?ml", "lib/cli_command_parser/__version__.py"
]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
paths-ignore: [
"**/*.rst", "**/*.txt", "**/.md", "**/.gitignore", "**/.*rc", "**/*.cfg", "**/*.toml", ".*.ya?ml", "lib/cli_command_parser/__version__.py"
]
schedule:
- cron: '29 17 * * 4'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
security-events: write
strategy:
fail-fast: false
matrix:
language: ["python"]
python-version: ["3.14"]
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python-version }}
- name: Initialize CodeQL
uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
with:
languages: ${{ matrix.language }}
# source-root: lib
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# 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
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1