-
Notifications
You must be signed in to change notification settings - Fork 0
chore: add Dependency Review GitHub Action #46
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
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,21 @@ | ||
| name: Dependency Review | ||
| on: | ||
| pull_request: | ||
| branches: ["main"] | ||
| push: | ||
| branches: ["main"] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
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. Missing write permission for PR commentsMedium Severity The Additional Locations (1)Reviewed by Cursor Bugbot for commit 63542b9. Configure here. |
||
|
|
||
| jobs: | ||
| dependency-review: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Dependency Review | ||
| uses: actions/dependency-review-action@v4 | ||
| with: | ||
| fail-on-severity: moderate | ||
| comment-summary-in-pr: on-failure | ||


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.
Workflow will fail on push events
Medium Severity
The
dependency-review-actiondoes not supportpushevents — it requires the pull request context to compare base and head refs for dependency diffing. When triggered by a push tomain, the action will fail with an error like "This run was triggered by the 'push' event, which is unsupported." Thepushtrigger needs to be removed or guarded with a conditional likeif: github.event_name == 'pull_request'.Reviewed by Cursor Bugbot for commit 63542b9. Configure here.