Skip to content

CodeQL

CodeQL #3792

Workflow file for this run

name: 'CodeQL'
on:
push:
branches: [main]
paths: ['**.js', '**.jsx', '**.ts', '**.tsx']
pull_request:
branches: [main]
schedule:
- cron: '0 0/12 * * *'
permissions: write-all
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: ['javascript']
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup node and restore cached dependencies
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- name: Install packages
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3