Repository navigation
feat(semgrep): exclude p/default's node-version-brotli rule - #243
Merged
smartwatermelon-agent[bot] merged 1 commit intoNov 20, 2026
Merged
Conversation
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
Bot
requested a review
from twistedmelonman
as a code owner
November 20, 2026 19:55
twistedmelonman
approved these changes
Nov 20, 2026
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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=26gives 1finding (
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 scanpath. With
SEMGREP_APP_TOKEN,semgrep ciuses the platform's policies.After merge: tag
semgrep-scan/v1.3.0and movesemgrep-scan-v1(Andrew).