Skip to content

codeQL

codeQL #164

Workflow file for this run

name: "codeQL"
on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '37 22 * * 3'
jobs:
analyze:
name: analyze
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners
# Consider using larger runners for possible analysis time improvements.
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'python' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
steps:
- name: checkout repository
uses: actions/checkout@v3.5.3
- name: setting up python
uses: actions/setup-python@v4.7.0
with:
python-version-file: pyproject.toml
- name: initialize CodeQL
uses: github/codeql-action/init@v2.21.2
with:
languages: ${{ matrix.language }}
- name: perform CodeQL analysis
uses: github/codeql-action/analyze@v2.21.2
with:
category: "/language:${{matrix.language}}"