Skip to content

Py CodeQL analysis

Py CodeQL analysis #13

name: "Py CodeQL analysis"
on:
push:
branches: [develop, main]
pull_request:
branches: [develop]
paths:
- 'api/**.py'
- 'api/requirements*.*'
- 'docker/dockerfiles/Dockerfile.backend*'
- 'docker-compose.yml'
- '.github/workflows/api_pipeline.yml'
- '.github/workflows/code-analysis-py.yml'
schedule:
- cron: '15 7 * * 2'
jobs:
analyze_py:
name: Analyze code
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
language: ['python']
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2