Skip to content

chore: add Dependency Review GitHub Action#46

Merged
KooshaPari merged 1 commit into
mainfrom
chore/add-dependency-review
May 2, 2026
Merged

chore: add Dependency Review GitHub Action#46
KooshaPari merged 1 commit into
mainfrom
chore/add-dependency-review

Conversation

@KooshaPari
Copy link
Copy Markdown
Owner

@KooshaPari KooshaPari commented Apr 30, 2026

Summary

  • Adds dependency-review-action@v4 to scan dependency manifests on every PR and push to main
  • Fails on moderate or higher severity vulnerabilities
  • Posts inline comments on PRs when issues are found

Test plan

  • Verify workflow appears at .github/workflows/dependency-review.yml
  • Confirm CI passes on this PR
  • Merge and verify action runs on subsequent PRs

🤖 Generated with Claude Code


Note

Low Risk
Low risk: adds a new CI workflow that only gates PRs/pushes based on detected dependency vulnerabilities, without changing runtime code.

Overview
Adds a new Dependency Review GitHub Actions workflow that runs on pull requests and pushes to main.

The job checks out the repo and runs actions/dependency-review-action@v4, failing the workflow on moderate (or higher) vulnerability findings and posting a PR comment summary only on failure.

Reviewed by Cursor Bugbot for commit 63542b9. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 30, 2026

Warning

Rate limit exceeded

@KooshaPari has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 38 minutes and 6 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 0593d0ff-6772-4f41-85c7-40b50e7e1200

📥 Commits

Reviewing files that changed from the base of the PR and between 89f94c3 and 63542b9.

📒 Files selected for processing (1)
  • .github/workflows/dependency-review.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/add-dependency-review
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch chore/add-dependency-review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 38 minutes and 6 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

Bugbot Autofix is ON, but it could not run because on-demand usage is turned off. To enable Bugbot Autofix, turn on on-demand usage and set a spend limit in the Cursor dashboard.

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

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.

branches: ["main"]

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.

@KooshaPari KooshaPari merged commit f70d507 into main May 2, 2026
13 of 14 checks passed
@KooshaPari KooshaPari deleted the chore/add-dependency-review branch May 2, 2026 13:48
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.

1 participant