Skip to content

chore(release): v0.0.142 - #1331

Merged
nc9 merged 10 commits into
mainfrom
release/v0.0.142
Oct 30, 2026
Merged

nc9 merged 10 commits into
mainfrom
release/v0.0.142

Conversation

@nc9

@nc9 nc9 commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Release PR for v0.0.142 (batch 1), stacked so one CI run covers it. Commits keep their authors and Signed-off-by lines (rebase-merge).

Contents: #1277 (WilliamK112, 2 commits: leaked-secret findings carry the value's length and offset; patch-id --stable 451c4a0570edeb3219cfe6fca7d0d48952e6fffd equal to the approved diff), #1289 (label elements and readable alt), #1295 (relative sitemap loc, pages stored under absolute URLs), #1290 (empty pages parse; id/for lookups no longer build selectors), #1297 (offline level snapshot; unreachable start URL writes a report and exits 5), and the v0.0.142 notes + version bump. #1289 and #1290 both touched a11y/form-field-multiple-labels.ts: #1289's version kept (its label map already compares ids as strings), unused import dropped.

Released sections v0.0.138 to v0.0.141 equal their tags; changelog guard passes locally.

Local gates: actionlint, tsgo (cli, rules, crawler, parser, audit-engine), oxfmt/oxlint, docs make validate, rules 8187 pass (1 known load-timing flake, passes alone), rest 2105/0, crawler 874/0, cli suite (2 known local failures: the local-bun reachability test and a timing test), detect-secrets exit 0.

Docs: updated in the individual changes. Skill: no change (per the original PRs).

WilliamK112 and others added 10 commits October 30, 2026 13:18
Signed-off-by: Ching-Wei Kang <[email protected]>
(cherry picked from commit 4c49327)
Signed-off-by: Ching-Wei Kang <[email protected]>
(cherry picked from commit 8371601)
…readable alt in image-redundant-alt #1249 #1273

Signed-off-by: Nik Cubrilovic <[email protected]>
(cherry picked from commit dee9d03)
…<loc> resolved and reported #1274

Signed-off-by: Nik Cubrilovic <[email protected]>
(cherry picked from commit 0cd1895)
…or/role lookups no longer build selectors #1270 #1276

Signed-off-by: Nik Cubrilovic <[email protected]>
(cherry picked from commit 2f617a3)
…e; engine-level CLI test; broader selector guard #1270 #1276

Signed-off-by: Nik Cubrilovic <[email protected]>
(cherry picked from commit 5d1c342)
… (CodeQL) #1276

Signed-off-by: Nik Cubrilovic <[email protected]>
(cherry picked from commit b09f335)
…URL writes a report and exits 5; blocked always exits 3 #1275 #1269

Signed-off-by: Nik Cubrilovic <[email protected]>
(cherry picked from commit 29775cb)
… settings docs, no empty project dir, breaking-exit note #1269 #1275

Signed-off-by: Nik Cubrilovic <[email protected]>
(cherry picked from commit fe4b1b6)
@claude

claude Bot commented Oct 30, 2026

Copy link
Copy Markdown

Review of release PR v0.0.142 batch 1. I read the non-test source diffs (CLI unreachable flow, crawler/sitemap URL resolution, parseHTML wrapper, leaked-secrets offsets, attribute-lookup helpers). I did not run the test suites. Overall it looks sound.

  • (medium) apps/cli/src/cli/commands/audit.ts (blocked-report exit code): every report.status === "blocked" now exits with EXIT_CODE_WAF_BLOCKED. Before, only blocked reports with wafBlocked.seed did. That also covers a bare 403 or 429 with no vendor identified. It is a user-visible exit-code change for CI scripts that treat 1 as "blocked". The CHANGELOG bullet only mentions the unreachable exit 5. Please add a ### Changed bullet and check that docs/guides/ci.mdx and docs/cli/audit.mdx describe exit 3 this way.
  • (low) apps/cli/src/controllers/audit.ts (project dir cleanup): rmSync(projectDir, { recursive: true, force: true }) deletes everything in the directory. The catch comment says "Not empty", which cannot happen with recursive/force. It is guarded by "did not exist before this run", so the risk is small. A concurrent audit of the same project could still have its freshly created directory removed. Consider rmdirSync (non-recursive) so it only removes an empty directory, and fix the comment.
  • (low) apps/cli/src/cli/unreachable.ts (emitUnreachableOutcome): writeFileSync to --output can throw (missing parent directory, permissions). This runs in the error path, so the user would see a stack trace instead of the exit-5 report. Wrap it and fall back to stderr or stdout.
  • (low) packages/parser/src/dom.ts (parseHTML fallback): the document is re-parsed whenever documentElement is null. The input is not size-bounded here, but it only runs for markup with no elements, so the cost is bounded by the existing fetch limits. It looks fine. A test that a comment-only or doctype-only body keeps its text would pin the behaviour.
  • (nit) packages/rules/src/security/secrets/decode.ts: offsets for findings inside base64 blobs point at the blob start, not at the secret. The code comment says so. The CHANGELOG says "the matched value's length and offset", so a short note in the leaked-secrets docs that decoded findings report the blob start would avoid confusion.
  • (nit) packages/crawler/src/sitemaps.ts: a relative <loc> that cannot be resolved is dropped and still counted in the error message ("not an absolute URL"). That is accurate, but resolve returning null silently loses the entry. Say "dropped" in the message if that is intended.

No critical or high issues found.

@nc9
nc9 merged commit dbede75 into main Oct 30, 2026
16 checks passed
@nc9
nc9 deleted the release/v0.0.142 branch October 30, 2026 06:12
This was referenced Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants