Files
softharbor/.github/workflows/codeql.yml
T
poli0981andClaude Opus 5.5 32085564b1 v1.2: VirusTotal re-check automation (D30) (#29)
- feat(security): VirusTotal re-check — assisted, never decided (D30)
- fix(copy): say what the dated security note now rests on
- docs: VirusTotal re-check (docs/12 §4b, D30); checkedAt = latest scan

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 20:08:29 +07:00

43 lines
1.8 KiB
YAML

# docs/12 §2. reusable-codeql.yml DOES exist in the ops repo (verified).
name: codeql
on:
push:
branches: [main]
# `pull_request` is REQUIRED, not optional. Branch protection lists
# `codeql / Analyze (javascript-typescript)` as a required status check, and
# a required check that the workflow never produces on a PR is unsatisfiable
# — it deadlocks the repo: no PR can ever merge (hit 2026-07-30).
#
# It is also the point of the tool. Scanning only after the merge tells you
# about a vulnerability that is already on main.
pull_request:
schedule:
- cron: '31 3 * * 1'
# quarantine.yml and vt-recheck.yml dispatch this on the PRs they open: a
# GITHUB_TOKEN-created PR's pull_request runs wait for approval (GitHub,
# since 2026-06-11), so the required check would not appear on its own.
workflow_dispatch:
# Required matrix — security-events: write is what lets results upload.
# Must be a SUPERSET of what the reusable workflow's jobs declare — a called
# workflow cannot request a permission the caller lacks, and the run is
# rejected at startup if it tries. `packages: read` is the easy one to miss:
# it is there so CodeQL can fetch internal query packs.
permissions:
actions: read
contents: read
packages: read
security-events: write
jobs:
codeql:
# First-party org workflow, deliberately tracked at @main so org-wide fixes
# land everywhere at once. Third-party actions are SHA-pinned instead.
uses: poli0981/.github/.github/workflows/reusable-codeql.yml@main
with:
# A JSON ARRAY STRING, not a bare value — the reusable workflow feeds it
# to fromJSON() for its matrix. `javascript-typescript` on its own throws
# and the run dies with startup_failure before any step executes.
languages: '["javascript-typescript"]'