Repository navigation
ci: add npmscan PR dependency scan #1449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| name: npmscan | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - package.json | ||
| - '**/package.json' | ||
| - pnpm-lock.yaml | ||
| - pnpm-workspace.yaml | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| scan: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| - uses: NPMscan/npmscan-action@de14168f65640a4ed1f0e82ad3ad8c80483d360d # v1.3.0 | ||
| with: | ||
| file: pnpm-lock.yaml | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win Scan changed manifests as well as the lockfile. If a PR changes only a workspace 🤖 Prompt for AI Agents
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P1: Scan the changed Prompt for AI agents |
||
| mode: warn | ||
| fail-on-error: false | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P3: This is the only workflow in the repo without a
concurrencyblock (prerelease.ymland every job inpull-request.ymlusecancel-in-progress: true). Rapid pushes on a dependency PR each spawn a full scan, and npmscan.com rate-limits to 30 requests/min per IP, so bursts can hit 429 warnings and post duplicate PR comments. Add a workflow-level concurrency group. doesPrompt for AI agents