Skip to content

fix: scan dist/ and build/ for bundled executable artefacts - #37

Open
sharadvc wants to merge 1 commit into
AgentPostmortem:mainfrom
sharadvc:cursor/scan-dist-build-4807
Open

fix: scan dist/ and build/ for bundled executable artefacts#37
sharadvc wants to merge 1 commit into
AgentPostmortem:mainfrom
sharadvc:cursor/scan-dist-build-4807

Conversation

@sharadvc

Copy link
Copy Markdown
Contributor

Summary

dist/ and build/ were in SKIP_DIR, so bundled scripts agents actually run (e.g. dist/setup.js) were never audited. They are no longer skipped; .git, node_modules, .venv, and __pycache__ remain skipped.

Test plan

  • npm test — includes coverage that dist//build/ scripts are collected and rules can fire there

Fixes #6

@royalpinto007

Copy link
Copy Markdown
Member

Good instinct, but removing dist/build from the default skip would double-report every finding (source + bundle) for most skills. Please gate this behind an opt-in flag instead, e.g. --include-build, keeping the default as-is. Happy to merge once it's opt-in.

Skills may ship bundled scripts under dist/ or build/ that agents execute directly. Stop skipping those directories while still ignoring .git, node_modules, .venv, venv, and __pycache__.

Fixes AgentPostmortem#6
@cursor
cursor Bot force-pushed the cursor/scan-dist-build-4807 branch from 7385452 to 8ae4b97 Compare September 12, 2026 13:26
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.

dist and build are skipped, but a bundled script there is what actually runs

2 participants