Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/dependency-review.yml
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"]
Copy link
Copy Markdown

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-action does not support push events — it requires the pull request context to compare base and head refs for dependency diffing. When triggered by a push to main, the action will fail with an error like "This run was triggered by the 'push' event, which is unsupported." The push trigger needs to be removed or guarded with a conditional like if: github.event_name == 'pull_request'.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 63542b9. Configure here.


permissions:
contents: read
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing write permission for PR comments

Medium Severity

The comment-summary-in-pr: on-failure option requires pull-requests: write permission to post inline comments on PRs, but the workflow only grants contents: read. The action will either silently skip commenting or emit a warning, defeating the stated purpose of posting inline comments when issues are found.

Additional Locations (1)
Fix in Cursor Fix in Web

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
Loading