1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: "CodeQL Advanced"
# Advanced-setup CodeQL analysis, replacing the repo's prior Default-setup configuration so the
# `javascript-typescript` scan can exclude generated/vendored build artifacts via `paths-ignore`.
#
# `prebuilt.html` is the self-contained React `client/` bundle `build.rs` embeds into the binary
# (see `src/build/client.rs`, `Architecture.md`) — a single minified file inlining every
# third-party dependency's compiled output (react, react-router-dom, etc.), already marked
# `linguist-generated` in `.gitattributes` and excluded from spell-check in `typos.toml`. Scanning
# it as if it were hand-written application source produces noise, not signal: any finding inside
# it is necessarily inside a dependency's own bundled code, not something this repo can fix by
# editing the generated output, and the file's *entire* byte content changes on every `client/`
# rebuild (dependency bump, or even just a new build), so an unrelated dependency bump can make an
# already-shipped, pre-existing pattern look "newly introduced" in a PR diff purely from files
# shifting. Excluding it here scopes analysis to the actual hand-written source (`src/`, `client/src/`).
on:
push:
branches:
pull_request:
branches:
schedule:
- cron: '30 1 * * 0'
permissions:
contents: read
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
permissions:
security-events: write
packages: read
actions: read
contents: read
strategy:
fail-fast: false
matrix:
include:
- language: actions
build-mode: none
- language: javascript-typescript
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize CodeQL
uses: github/codeql-action/init@e0647621c2984b5ed2f768cb892365bf2a616ad1 # v4.37.2
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
config: |
paths-ignore:
- 'prebuilt.html'
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@e0647621c2984b5ed2f768cb892365bf2a616ad1 # v4.37.2
with:
category: "/language:${{ matrix.language }}"