-
Notifications
You must be signed in to change notification settings - Fork 0
fix(ci): unblock Dependabot PRs and patch high-severity npm vulns #22
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,39 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "npm" | ||
| directory: "/capstone-client" | ||
| schedule: | ||
| interval: "weekly" | ||
| open-pull-requests-limit: 10 | ||
| groups: | ||
| radix-ui: | ||
| patterns: | ||
| - "@radix-ui/*" | ||
| types: | ||
| patterns: | ||
| - "@types/*" | ||
| eslint: | ||
| patterns: | ||
| - "eslint*" | ||
| - "@eslint/*" | ||
| next: | ||
| patterns: | ||
| - "next" | ||
| - "eslint-config-next" | ||
|
Comment on lines
+17
to
+22
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.
Because Dependabot assigns a dependency to the first matching group, Useful? React with 👍 / 👎. |
||
|
|
||
| - package-ecosystem: "pip" | ||
| directory: "/capstone-server" | ||
| schedule: | ||
| interval: "weekly" | ||
| open-pull-requests-limit: 10 | ||
| groups: | ||
| django: | ||
| patterns: | ||
| - "Django" | ||
| - "django-*" | ||
| - "djangorestframework" | ||
|
|
||
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "monthly" | ||
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.
eslint*glob shadowseslint-config-nextin thenextgroup — the two packages will be bumped separately.Dependabot assigns each package to the first group whose pattern matches it. Because the
eslintgroup (usingeslint*) is declared before thenextgroup,eslint-config-nextis captured byeslint, not bynext. This defeats the goal of keepingnextandeslint-config-nexton the same version, and risks peer-dependency mismatches when they land in separate PRs.Fix: either narrow the
eslintgroup's glob to excludeeslint-config-next, or moveeslint-config-nextto an explicit exclude/include:🔧 Proposed fix
eslint: patterns: - "eslint*" - "@eslint/*" + exclude-patterns: + - "eslint-config-next" next: patterns: - "next" - "eslint-config-next"🤖 Prompt for AI Agents