Add Dependency Review GitHub Action#2282
Conversation
Adds the dependency-review-action workflow to scan PRs for dependency changes that introduce known vulnerabilities. Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
👋 @haritamar |
📝 WalkthroughWalkthroughAdds a GitHub Actions workflow that runs dependency review on pull requests and manual dispatches with restricted permissions. ChangesDependency review workflow
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/dependency-review.yml:
- Around line 12-13: The dependency-review workflow’s actions/checkout step is
leaving the GitHub token persisted in local git config by default. Update the
Checkout repository step to disable persisted credentials by setting
persist-credentials to false in the checkout action, keeping the change scoped
to the existing checkout job.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: ddfafe8a-c9f1-460e-bc31-e32de77a52f8
📒 Files selected for processing (1)
.github/workflows/dependency-review.yml
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
Summary
Adds
actions/dependency-review-action@v4workflow to scan PRs for vulnerable or improperly-licensed dependency changes.pull_requestandworkflow_dispatch(manual runs requirebase-refinput, e.g. a tag or commit SHA, to define the comparison range;head-refdefaults to HEAD)persist-credentials: falseon checkout for securityallow-licensesallowlist covering permissive (MIT, Apache-2.0, BSD, ISC, etc.) and weak copyleft (LGPL, MPL-2.0) — blocks strong copyleft (GPL, AGPL), proprietary, SSPL, BUSL, Elastic, and any other unlisted licenseLink to Devin session: https://app.devin.ai/sessions/0f830b140bd8488797ab340ef05dc88f
Requested by: @haritamar