Skip to content

Code Analysis

Code Analysis #3529

Workflow file for this run

name: Code Analysis
permissions:
security-events: write
# Events that trigger this workflow
on:
push:
branches:
- main
pull_request:
# The branches below must be a subset of the branches above
branches:
- main
workflow_dispatch:
schedule:
- cron: '26 9 * * 4'
# Defines which tool versions should be used in all workflow jobs
env:
node: '18'
pnpm: '7'
jobs:
codeql-analysis:
name: CodeQL
runs-on: ubuntu-latest
steps:
- name: Checkout 📥
uses: actions/checkout@v3.6.0
- name: Setup PNPM 💿
uses: pnpm/action-setup@v2.4.0
with:
version: ${{ env.pnpm }}
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL 📀
uses: github/codeql-action/init@v2
with:
languages: javascript
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
- name: Setup Node 💿
uses: actions/setup-node@v3.8.2
with:
node-version: ${{ env.node }}
cache: 'pnpm'
- name: Install dependencies 📚
run: pnpm install
- name: Build packages 📦
run: pnpm build
- name: Perform CodeQL Analysis 🔬
uses: github/codeql-action/analyze@v2