Part of #45 (phases 4 and 5). You approved a local dry run of both tools first, which I did.
eslint-plugin-security 4.2.1
It uses the plugin's recommended-legacy rule set, with these exceptions:
detect-object-injection is off: it flags every obj[key] (64 hits, all noise).
The file-path, regex and child-process rules are off for scripts/ and tests/, where they only flagged trusted paths.
The remaining hits in server code were false positives. Each now has a one-line disable explaining why:
page names come from the fixed PAGES list (2 hits);
the worker reads from its own folder;
token !== null is a null check, while keys are compared with safeEqual.
One real tidy-up: the number regex in the condition tokenizer had nested quantifiers. It's now two flat patterns with no backtracking (input was already capped at 2,000 characters, so it wasn't exploitable), and malformed numbers like 1.2.3 are now refused. New tests cover 1.5e2, .5, 2E-1 and 3.. The production-condition differential test still passes.
zizmor 1.32.0 (Scan job)
All its findings are fixed:
artipacked (8): every checkout now sets persist-credentials: false. No job pushes, so the token doesn't need to stay in .git/config.
unpinned-images (8): node:20-bookworm and the Playwright image are pinned by digest, with the tag kept in the reference. The node digest is the one CI has been pulling all along.
template-injection (3): the deploy tag step now passes github.run_number, github.sha and github.repository through env instead of pasting them into the script.
The one exception is secrets-outside-env (auditor persona only): it asks for GitHub deployment environments, which Gitea doesn't have.
Result: zizmor reports "No findings". Lint is clean (0 warnings), jest passes 134/134, npm audit is clean, and actionlint is clean.
Part of #45 (phases 4 and 5). You approved a local dry run of both tools first, which I did.
## eslint-plugin-security 4.2.1
It uses the plugin's `recommended-legacy` rule set, with these exceptions:
- `detect-object-injection` is off: it flags every `obj[key]` (64 hits, all noise).
- The file-path, regex and child-process rules are off for `scripts/` and `tests/`, where they only flagged trusted paths.
The remaining hits in server code were false positives. Each now has a one-line disable explaining why:
- page names come from the fixed `PAGES` list (2 hits);
- the worker reads from its own folder;
- `token !== null` is a null check, while keys are compared with `safeEqual`.
One real tidy-up: the number regex in the condition tokenizer had nested quantifiers. It's now two flat patterns with no backtracking (input was already capped at 2,000 characters, so it wasn't exploitable), and malformed numbers like `1.2.3` are now refused. New tests cover `1.5e2`, `.5`, `2E-1` and `3.`. The production-condition differential test still passes.
## zizmor 1.32.0 (Scan job)
All its findings are fixed:
- **artipacked** (8): every checkout now sets `persist-credentials: false`. No job pushes, so the token doesn't need to stay in `.git/config`.
- **unpinned-images** (8): `node:20-bookworm` and the Playwright image are pinned by digest, with the tag kept in the reference. The node digest is the one CI has been pulling all along.
- **template-injection** (3): the deploy tag step now passes `github.run_number`, `github.sha` and `github.repository` through `env` instead of pasting them into the script.
The one exception is `secrets-outside-env` (auditor persona only): it asks for GitHub deployment environments, which Gitea doesn't have.
**Result:** zizmor reports "No findings". Lint is clean (0 warnings), jest passes 134/134, npm audit is clean, and actionlint is clean.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
- eslint-plugin-security 4.2.1 (recommended-legacy) with
detect-object-injection off (it flags every obj[key]) and file/regex
rules off for CI scripts and tests. The remaining hits were false
positives with a one-line reason each (fixed page names, the worker's
own directory, a null check), plus one real tidy-up: the condition
tokenizer's number regex is now two flat patterns with no backtracking,
and malformed numbers like 1.2.3 are refused.
- zizmor 1.32.0 in the Scan job. Its findings are fixed:
persist-credentials: false on every checkout (no job pushes), container
images pinned by digest (tag kept in the reference), and the deploy tag
step takes github.* values through env instead of template expansion.
Left as is: secrets-outside-env (auditor persona; Gitea has no
deployment environments).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part of #45 (phases 4 and 5). You approved a local dry run of both tools first, which I did.
eslint-plugin-security 4.2.1
It uses the plugin's
recommended-legacyrule set, with these exceptions:detect-object-injectionis off: it flags everyobj[key](64 hits, all noise).scripts/andtests/, where they only flagged trusted paths.The remaining hits in server code were false positives. Each now has a one-line disable explaining why:
PAGESlist (2 hits);token !== nullis a null check, while keys are compared withsafeEqual.One real tidy-up: the number regex in the condition tokenizer had nested quantifiers. It's now two flat patterns with no backtracking (input was already capped at 2,000 characters, so it wasn't exploitable), and malformed numbers like
1.2.3are now refused. New tests cover1.5e2,.5,2E-1and3.. The production-condition differential test still passes.zizmor 1.32.0 (Scan job)
All its findings are fixed:
persist-credentials: false. No job pushes, so the token doesn't need to stay in.git/config.node:20-bookwormand the Playwright image are pinned by digest, with the tag kept in the reference. The node digest is the one CI has been pulling all along.github.run_number,github.shaandgithub.repositorythroughenvinstead of pasting them into the script.The one exception is
secrets-outside-env(auditor persona only): it asks for GitHub deployment environments, which Gitea doesn't have.Result: zizmor reports "No findings". Lint is clean (0 warnings), jest passes 134/134, npm audit is clean, and actionlint is clean.
🤖 Generated with Claude Code