Repository navigation
Description
Problem statement
Follow-up to #298 and the workflow merged in #335.
#298 asked for SAST covering "the website (JS/TS) and workflow/config surfaces". The workflow that landed in #335 covers the first half only: a matrix entry for javascript-typescript, which extracts 274 files from website/** and scripts/ and reports 0 findings against 87 rules.
The workflow half was assumed to need a different tool. It does not: CodeQL ships an actions language with its own extractor and security queries (github/codeql/actions/ql/src/Security), covering CWE-094 (code injection in workflows), CWE-829 (unpinned or third-party actions), CWE-312 (cleartext credentials), plus CWE-275, CWE-285 and CWE-349.
Nothing in this repo analyses .github/workflows/, which is the highest-privilege code here: deploy.yml holds pages: write and id-token: write.
Separately, the query suite was never chosen, only defaulted. The baseline is 87 rules and 0 results, which is a clean starting point but says nothing about what security-extended would surface.
Proposed solution
- Add
- language: actionswithbuild-mode: noneto the matrix in.github/workflows/codeql.yml, run it, and confirm whether this repo's workflows analyse cleanly without extra configuration. - Run
security-extendedon a throwaway branch and compare the alert count with the default suite. Decide, and record the numbers in this issue. - Add the dismissal policy to
TRIAGE.md: who may dismiss a code scanning alert, and which reason codes are acceptable.
If the actions queries turn out to be thin, the fallback is actionlint in CI for syntax and shellcheck, and zizmor for workflow security rules. Do not add a second scanner before testing the one already being installed.
Scope and impact
One matrix line plus a comparison run. The risk is noise: if security-extended or the actions queries produce a wall of findings, the gate gets ignored, so the baseline has to be triaged before either change lands as a default.
Acceptance criteria:
-
actionsanalysis runs and its findings are triaged - Query suite chosen, with the comparison numbers recorded here
-
TRIAGE.mdstates the dismissal policy for code scanning alerts
Activity
feat(ci): settle the CodeQL query suite on security-extended (Interse…
Kshot3000 commentedon Oct 18, 2026
Recording the comparison numbers from the throwaway-branch runs (on my fork, both suites against this tree), as the issue asks:
The
actionsanalysis runs cleanly with no extra configuration (build-mode: none, same shape as the JS/TS entry), andsecurity-extendedsurfaces nothing extra on the current code — so the noise risk doesn't materialise and I've settled onsecurity-extendedin the PR that implements this: #366. The dismissal policy is in TRIAGE.md in the same PR.— Kyle (@Kshot9000)
feat(ci): extend CodeQL to the actions language and document the aler…
feat(ci): settle the CodeQL query suite on security-extended (Interse…
feat(ci): extend CodeQL to the actions language and document the aler…
feat(ci): settle the CodeQL query suite on security-extended (#341)
IanoNjuguna commentedon Nov 22, 2026
Triage of the four open code scanning alerts, all of which are in build scripts rather than shipped code. Alert numbers are the repository's own.
scripts/changelog-dates.js:40js/indirect-command-line-injectionscripts/fetch-github-data.js:173js/http-to-file-accessscripts/sync-skills-lock.js:70js/file-system-racescripts/fetch-github-data.js:173js/file-system-race4, fixed rather than dismissed. The file interpolated the two date arguments into a shell command string.
isValidDateenforces/^\d{4}-\d{2}-\d{2}$/and runs on both arguments before the command is built, so nothing could reach the shell, but the shape was wrong. #415 switches toexecFileSyncwith an argument vector, so no shell is spawned at all, and shows the output is byte-identical before and after.3,
http-to-file-access.fetch-github-data.jswrites the GitHub API response towebsite/src/data/githubData.json, which is a tracked build input: the navbar chip reads itsrepoblock, anddeploy.ymlwatches the script. Network data to a file is the feature. The source is GitHub over HTTPS, and the file is consumed by the build, not by a running site. Recommended reason code: won't fix, recorded because the data flow is intended.2 and 1,
file-system-race. Both are single-writer scripts:fetch-github-data.jsruns in the prebuild and indeploy.yml,sync-skills-lock.jsis run by hand by a maintainer and is wired to no workflow or npm script. Nothing else writes those files, so there is no race to lose. Recommended reason code: false positive, with the note that both write a whole file with onewriteFileSyncrather than reading and appending.Worth saying plainly:
sync-skills-lock.jsis not dead. It keepsskills-lock.jsonin step with.agents/skills/, and deleting it to clear an alert would remove a working tool. The alert stays dismissed, not the script.What this leaves on #341
.github/workflows/holds the highest-privilege code here (deploy.yml:pages: write,id-token: write) and nothing scans it.security-extendedhas not been done.TRIAGE.mddismissal policy: written in ci: fail the build on high-severity dependency advisories #405, which is open. Once that lands, this issue's third acceptance box is satisfied and the bar for the dismissals above exists in the repo rather than only in this comment.