Apply missing edits (#3871) #3652
This file contains 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
# Runs the CodeQL static code analysis | |
name: "Static Code Analysis" | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
paths: | |
- '**.js' | |
- '**.py' | |
schedule: | |
# ┌───────────── minute (0 - 59) | |
# │ ┌───────────── hour (0 - 23) | |
# │ │ ┌───────────── day of the month (1 - 31) | |
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) | |
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) | |
# │ │ │ │ │ | |
# │ │ │ │ │ | |
# │ │ │ │ │ | |
# * * * * * | |
- cron: '30 1 * * 0' | |
workflow_dispatch: | |
jobs: | |
CodeQL-Build: | |
# CodeQL runs on ubuntu-20.04, windows-latest, and macos-latest | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
language: ['javascript', 'python'] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
if: ${{ matrix.language == 'python' }} | |
uses: actions/[email protected] | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
if: ${{ matrix.language == 'python' }} | |
run: | | |
cd src | |
pip install -r requirements.txt; | |
# Set the `CODEQL-PYTHON` environment variable to the Python executable | |
# that includes the dependencies | |
echo "CODEQL_PYTHON=$(which python)" >> $GITHUB_ENV | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
config-file: ./.github/codeql/codeql-config.yml | |
queries: +security-and-quality | |
setup-python-dependencies: false | |
languages: '${{ matrix.language }}' | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |