Skip to content

CodeQL Scan

CodeQL Scan #738

name: "CodeQL Scan"
on:
push:
branches:
- main
pull_request:
schedule:
- cron: '30 23 * * 5'
permissions:
contents: read
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language:
- 'python'
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
files.pythonhosted.org:443
github.com:443
objects.githubusercontent.com:443
pypi.org:443
uploads.github.com:443
- name: Checkout repository
uses: actions/checkout@v4.2.1
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@codeql-bundle-20230524
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@codeql-bundle-20230524
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@codeql-bundle-20230524