Skip to content

Adding codeQL code scanning analysis in CI/CD #3

Adding codeQL code scanning analysis in CI/CD

Adding codeQL code scanning analysis in CI/CD #3

Workflow file for this run

name: CodeQL Analysis
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
analyze:
name: CodeQL Analysis
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: python
queries: security-and-quality
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:python"