Skip to content

CodeQL

CodeQL #317

# 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.13"]
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Initialize CodeQL
uses: github/codeql-action/init@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
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@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9