Skip to content

feat(semgrep): exclude p/default's node-version-brotli rule - #243

Merged
smartwatermelon-agent[bot] merged 1 commit into
mainfrom
claude/fix-semgrep-node-floating-99a8dc3b
Nov 20, 2026
Merged

smartwatermelon-agent[bot] merged 1 commit into
mainfrom
claude/fix-semgrep-node-floating-99a8dc3b

Conversation

@smartwatermelon-agent

Copy link
Copy Markdown
Contributor

The rule fails any .nvmrc or .node-version that names a bare major
("26", "24") as unverifiable, and passes only an exact patch pin. Fleet
version files name a bare major on purpose: setup-node and nvm resolve
it to the newest, patched release, while a pin goes stale after the
next Node security release.

Andrew decided to turn the rule off on 2026-11-20. What is lost: a
version file pinned to an old vulnerable patch is no longer flagged. No
fleet repo pins one today (all six version files say 24 or 26), and the
standards-check node floor still rejects old majors.

Without this, kebab-tax had to pin 26.13.1, and amelia-boone and
kebab-tax-netlify (.nvmrc = 24) would fail their next full scan on main.

Rule ID checked live: a repo whose only file is .nvmrc = 26 gives 1
finding (javascript.vulnerable-components.node-version-brotli.node-version-brotli)
with --config p/default --config p/javascript, and 0 with this exclusion.

Like the existing exclusions, this applies only to the no-token semgrep scan
path. With SEMGREP_APP_TOKEN, semgrep ci uses the platform's policies.

After merge: tag semgrep-scan/v1.3.0 and move semgrep-scan-v1 (Andrew).

The rule fails any .nvmrc or .node-version that names a bare major
("26", "24") as unverifiable, and passes only an exact patch pin. Fleet
version files name a bare major on purpose: setup-node and nvm resolve
it to the newest, patched release, while a pin goes stale after the
next Node security release.

Andrew decided to turn the rule off on 2026-11-20. What is lost: a
version file pinned to an old vulnerable patch is no longer flagged. No
fleet repo pins one today (all six version files say 24 or 26), and the
standards-check node floor still rejects old majors.

Without this, kebab-tax had to pin 26.13.1, and amelia-boone and
kebab-tax-netlify (.nvmrc = 24) would fail their next full scan on main.
@smartwatermelon-agent
smartwatermelon-agent Bot merged commit 303e949 into main Nov 20, 2026
7 checks passed
@smartwatermelon-agent
smartwatermelon-agent Bot deleted the claude/fix-semgrep-node-floating-99a8dc3b branch November 20, 2026 20:12
smartwatermelon-agent Bot added a commit to smartwatermelon/dotfiles that referenced this pull request Nov 20, 2026
smartwatermelon/github-workflows#243 excludes p/default's
node-version-brotli rule in run-semgrep.sh: it fails a bare Node major
in .nvmrc or .node-version, which the fleet uses on purpose (Andrew,
2026-11-20). The pre-push Semgrep scan must use the same list, or a
push and CI disagree. The parity test now checks this rule too.

Co-authored-by: Claude Code Bot <claude-code@smartwatermelon.github>
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.

1 participant