Files
free-steam-games-list/.github/workflows/codeql.yml
T
poli0981andClaude Opus 5.5 d057e3f620 fix(deps): patch the open advisories in npm, cargo and pip; Node 24 actions
npm (web/):
- undici 7.30.1 through a "miniflare" override (GHSA-xjj6-f33q-929c,
  GHSA-4qv8-2p9j-2685, GHSA-f72v-6w45-q472). miniflare pins undici exactly
  and wrangler 4.152.0, the newest, still ships 7.29.1. Local tooling only.
- zod 4.6.7 (GHSA-mrhx-c7xc-m3w5, via knip).
- Minor/patch: @lucide/svelte 1.61.0, @tanstack/svelte-virtual 3.13.48,
  bits-ui 2.20.2, vite 8.3.5, wrangler 4.152.0, knip 6.43.0,
  @tauri-apps/cli 2.12.4.

cargo (web/src-tauri/Cargo.lock, targeted updates only):
- rustls 0.23.46 (RUSTSEC-2026-0346..0349), rustls-webpki 0.103.16
  (RUSTSEC-2026-0382), webpki-root-certs 1.0.11 (RUSTSEC-2026-0383),
  tokio 1.54.1 (RUSTSEC-2026-0386), anyhow 1.0.104 (RUSTSEC-2026-0190),
  event-listener 5.4.2 (RUSTSEC-2026-0221), plist 1.10.3 -> quick-xml
  0.42.0 (RUSTSEC-2026-0194/0195). Dependabot had none of these.
- Left upstream: zip 4 (tauri-plugin-updater 2.14.0 asks for ^4), glib 0.18
  (GTK 3), unmaintained proc-macro-error/zbus_names/zvariant.

pip: certifi 2026.10.23, coverage 7.17.0 (tests), with every file's hash.

CI: actions/checkout v4/v5 -> v6 and actions/setup-python v5 -> v6
everywhere (the Node 20 majors warned on every data job), rust-cache 2.9.3
by SHA. dependabot.yml says why those majors are taken by hand.

CLAUDE.md: the undici override and when to drop it; why SvelteKit stays on 2
(GHSA-27mw-82g8-phjj and GHSA-pfhg-q3qv-9q6r need setHeaders or use:enhance,
which the app does not have).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 13:50:58 +07:00

99 lines
2.6 KiB
YAML

name: CodeQL
# Multi-language CodeQL for repos with mixed stack.
# Use this for: free-steam-games-list (Python + TS + Rust),
# free-games-itchio-list (Python + TS + Rust).
#
# Matrix splits each language into a separate parallel job — failures in
# one language don't block the others.
on:
push:
branches: [main, master]
paths:
- 'scripts/**'
- 'web/src/**'
- 'webapp/src/**'
- 'web/src-tauri/**'
- 'webapp/src-tauri/**'
- '**/*.py'
- '**/*.ts'
- '**/*.tsx'
- '**/*.js'
- '**/*.jsx'
- '**/*.mjs'
- '**/*.cjs'
- '**/*.rs'
- 'requirements.txt'
- 'package.json'
- 'package-lock.json'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/codeql.yml'
pull_request:
branches: [main, master]
paths:
- 'scripts/**'
- 'web/src/**'
- 'webapp/src/**'
- 'web/src-tauri/**'
- 'webapp/src-tauri/**'
- '**/*.py'
- '**/*.ts'
- '**/*.tsx'
- '**/*.js'
- '**/*.jsx'
- '**/*.mjs'
- '**/*.cjs'
- '**/*.rs'
schedule:
- cron: '0 14 * * 1'
workflow_dispatch:
permissions:
actions: read
contents: read
security-events: write
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
# Note: Rust support in CodeQL is in beta as of 2026 — toggle the
# 'rust' entry off if your CodeQL setup doesn't recognize it yet.
language: ['python', 'javascript-typescript']
steps:
- name: Checkout
uses: actions/checkout@v6
# The one workflow not on the pipeline's Python (3.15, every other
# setup-python): CodeQL's supported-languages page lists Python up to
# 3.14, and its extractor runs on this interpreter. The pipeline uses no
# 3.15-only syntax, so nothing goes unparsed. web/shared/toolchain.test.ts
# names this exception; move it when CodeQL lists 3.15.
- name: Setup Python
if: matrix.language == 'python'
uses: actions/setup-python@v6
with:
python-version: '3.14'
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
queries: security-extended
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"