CodeQL Analysis #78
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CodeQL Analysis | |
on: | |
schedule: | |
# Weekly on Saturdays. | |
- cron: "30 1 * * 6" | |
workflow_call: | |
jobs: | |
code-security: | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: ["python", "javascript"] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Set up Python 3.13 | |
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0 | |
if: matrix.language == 'python' | |
with: | |
python-version: "3.13" | |
- name: Install python dependencies | |
if: matrix.language == 'python' | |
run: | | |
python -m pip install --no-cache-dir --ignore-installed --require-hashes -r src/deps/requirements.txt | |
python -m pip install --no-cache-dir --require-hashes -r src/scheduler/requirements.txt | |
python -m pip install --no-cache-dir --require-hashes -r src/ui/requirements.txt | |
python -m pip install --no-cache-dir --require-hashes -r src/common/gen/requirements.txt | |
python -m pip install --no-cache-dir --require-hashes -r src/common/db/requirements.txt | |
echo "CODEQL_PYTHON=$(which python)" >> $GITHUB_ENV | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11 | |
with: | |
languages: ${{ matrix.language }} | |
config-file: ./.github/codeql.yml | |
setup-python-dependencies: false | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11 | |
with: | |
category: "/language:${{matrix.language}}" |