Skip to content

CodeQL

CodeQL #73

---
# Based on the GitHub-recommended CodeQL Action
name: CodeQL
"on":
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: 34 21 * * 6
workflow_dispatch: null # For manual runs
jobs:
analyze:
name: Analyze
runs-on: ubuntu-22.04
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
python-version: ["3.9"]
language: [python]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
os: ubuntu-latest
python-version: ${{ matrix.python-version }}
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
config-file: .github/codeql-config.yml
languages: ${{ matrix.language }}
setup-python-dependencies: false
# 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@v2
with:
category: /language:${{ matrix.language }}