Skip to content

CodeQL

CodeQL #114

Workflow file for this run

name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "17 3 * * 2"
permissions:
actions: read
contents: read
security-events: write
jobs:
private-repo-gate:
name: CodeQL public-repo gate
if: ${{ github.event.repository.private == true }}
runs-on: ubuntu-latest
steps:
- name: Explain private repository gate
run: |
echo "Code scanning is unavailable on this private repository without GitHub Advanced Security."
echo "The CodeQL analyzer runs automatically after the repository is public."
analyze:
name: CodeQL (${{ matrix.language }})
if: ${{ github.event.repository.private == false }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: [javascript-typescript, python]
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
queries: security-extended,security-and-quality
- name: Autobuild
uses: github/codeql-action/autobuild@v4
- name: Analyze
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"