Skip to content

fix: Fail scan when --matchers contains unknown slugs#35

Open
divyamagrawal06 wants to merge 1 commit into
vercel-labs:mainfrom
divyamagrawal06:fix/strict-unknwon-matching
Open

fix: Fail scan when --matchers contains unknown slugs#35
divyamagrawal06 wants to merge 1 commit into
vercel-labs:mainfrom
divyamagrawal06:fix/strict-unknwon-matching

Conversation

@divyamagrawal06
Copy link
Copy Markdown

fixes #34

What changed

Changed matcher slug lookup so deepsec scan --matchers fails when any requested slug is unknown instead of silently dropping missing slugs. Added e2e coverage for a mixed valid/invalid matcher list.

Why

When deepsec scan --matchers includes an unknown matcher slug, deepsec silently ignores the unknown slug and scans with only the known matchers. This makes an invalid scan request look successful.

Verification

  • pnpm test passes
  • pnpm lint passes
  • pnpm knip passes
  • If this adds a matcher: ran it against at least one real repo and confirmed the candidate count is sane
  • Reproduced old behavior: invalid matcher was silently ignored and exited 0
  • Verified new behavior: invalid matcher prints Unknown matcher slug(s): does-not-exist and exits 1

Notes for reviewer

Before:
image
After:
image

Environment

deepsec version: 1.1.13
Node version (node --version): v24.14.0
OS: Linux (Ubuntu) through WSL (Win 11)

@vercel
Copy link
Copy Markdown

vercel Bot commented May 5, 2026

@divyamagrawal06 is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

@cramforce
Copy link
Copy Markdown
Contributor

Please re-push with signed commits

Fail scan when --matchers includes unknown slugs. Fix README grammar (deepsec is an...).

Signed-off-by: Divyam Agrawal <ludicrouslytrue@gmail.com>
@divyamagrawal06 divyamagrawal06 force-pushed the fix/strict-unknwon-matching branch from 7e50611 to 7dfe161 Compare May 5, 2026 17:57
@divyamagrawal06
Copy link
Copy Markdown
Author

Please re-push with signed commits

Done, also made a small typo fix

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.

Unknown --matchers slugs are silently ignored

2 participants