Skip to content

fix(deps): roll up dependabot bumps and slim scanner registry#93

Merged
mulhamna merged 4 commits into
mainfrom
fix/deps-roundup
Jul 21, 2026
Merged

fix(deps): roll up dependabot bumps and slim scanner registry#93
mulhamna merged 4 commits into
mainfrom
fix/deps-roundup

Conversation

@mulhamna

Copy link
Copy Markdown
Owner

Summary

Changes

deps

  • prettier 3.9.4 → 3.9.6; npm audit fix clears brace-expansion DoS (GHSA-3jxr-9vmj-r5cp).
  • actions/setup-node → v7.0.0 across ci.yml, npm-publish.yml, security.yml.
  • github/codeql-action/{init,autobuild,analyze} → v4.37.0 in security.yml.

refactor

  • New utils.parseTabbed shared by apt + dnf; dnf now uses runScanner (drops its hand-rolled catch and the legacy dnf list fallback).
  • src/index.js auto-loads scanners via readdirSync + dynamic import instead of 40 imports + a 40-entry map. New scanners register by dropping a file in src/scanners/. Removes the block dependabot kept conflicting on.
  • Add URL to eslint globals (required by the new new URL(...) in index.js).

Net: refactor removes ~121 lines.

Supersedes

Closes the following once merged: #87, #88, #89, #90, #91.

Test plan

  • npm run lint — no issues
  • npm run format:check — clean
  • npm test — 14/14 pass
  • npm audit --audit-level=high — 0 vulnerabilities
  • node bin/pkgmap.js --manager npm --json — runs, 38 scanners load
  • CI validates the github-actions bumps on this PR

mulhamna added 4 commits July 21, 2026 23:09
Roll up open dependabot npm bump (prettier) to latest and clear the
high-severity brace-expansion DoS advisory (GHSA-3jxr-9vmj-r5cp) so the
security workflow npm audit gate passes.
Roll up the open dependabot github-actions bumps (#87-#90) that all
touched security.yml and could not auto-merge together. Pin
actions/setup-node v7.0.0 across ci, npm-publish, security and
github/codeql-action init/autobuild/analyze to v4.37.0.
Lift the dpkg/rpm tab-line parser into utils.parseTabbed so apt and dnf
stop repeating it, and route dnf through runScanner instead of its own
hand-rolled permission/timeout catch block. Drops the legacy
'dnf list installed' fallback (repoquery ships with dnf4/dnf5).
Replace 40 hand-written scanner imports and the matching ALL_SCANNERS
map with a readdirSync + dynamic-import registry keyed by filename. New
scanners register by dropping a file in src/scanners; also removes the
40-line block that dependabot github-actions bumps kept conflicting on.
@mulhamna
mulhamna merged commit 46b473d into main Jul 21, 2026
4 checks passed
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