Skip to content

CodeQL

CodeQL #26

Workflow file for this run

name: CodeQL
# Runs GitHub's CodeQL SAST analysis. For a defensive security library,
# "we run SAST" is table stakes for downstream due diligence. Free on
# public repos. Findings appear in the Security tab.
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Weekly Monday 06:00 UTC — catches new CodeQL rule releases without
# waiting for the next PR.
- cron: '0 6 * * 1'
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [javascript-typescript]
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# security-and-quality is the broadest pack; for a small library
# the extra noise is worth the extra coverage.
queries: security-and-quality
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: '/language:${{ matrix.language }}'