Skip to content

Fixture(#10)/dev only finding#613

Merged
sonukapoor merged 2 commits into
OWASP:mainfrom
coder-Yash886:fixture/dev-only-finding
Jun 11, 2026
Merged

Fixture(#10)/dev only finding#613
sonukapoor merged 2 commits into
OWASP:mainfrom
coder-Yash886:fixture/dev-only-finding

Conversation

@coder-Yash886

Copy link
Copy Markdown
Contributor

fixture(#10)

Summary

Adds a minimal crafted fixture for the dev-only-finding edge case.

  • axios@0.21.1 is pinned only in devDependencies (OSV-known vulnerable version, same as direct-fixable)
  • Full scan reports it as a direct · dev high-severity finding with a fix command
  • --prod-only excludes all dev packages (0 packages parsed, no findings)

Files changed

  • examples/dev-only-finding/package.json
  • examples/dev-only-finding/package-lock.json
  • examples/readme.md (fixture table + usage entries)
node dist/index.js examples/dev-only-finding --verbose

@coder-Yash886

Copy link
Copy Markdown
Contributor Author

@sonukapoor Please review the PR when you have free time

@sonukapoor sonukapoor left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally — fixture correctly shows direct · dev on the normal scan and 0 packages with --prod-only. The removeDir DRY cleanup in scanner-cache.test.ts is a nice bonus. Good work.

@sonukapoor sonukapoor merged commit c48fd86 into OWASP:main Jun 11, 2026
6 checks passed
@sonukapoor

Copy link
Copy Markdown
Collaborator

Merged — thank you @coder-Yash886!

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