Skip to content

chore: group dependabot updates per ecosystem including security updates - #62

Closed
shenxianpeng wants to merge 1 commit into
mainfrom
chore/dependabot-groups
Closed

chore: group dependabot updates per ecosystem including security updates#62
shenxianpeng wants to merge 1 commit into
mainfrom
chore/dependabot-groups

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Group Dependabot updates per package ecosystem, including security updates.

Background / root cause

The config already had groups for npm (npm-deps) and github-actions (github-action-deps), but only for version updates — Dependabot's groups default to applies-to: version-updates, and security updates are never grouped unless explicitly opted in. That is why #59 (immutable), #60 (postcss) and #61 (fast-uri) each got their own PR: they are security updates (GHSA advisories, see the open Dependabot alerts) and were outside the existing groups.

Also, the repo has Dockerfile + Dockerfile.dev but no docker ecosystem entry at all, so base-image updates were never tracked.

Changes

.github/dependabot.yml:

  1. npm — keep npm-deps (version updates), add npm-deps-security with applies-to: security-updates
  2. github-actions — keep github-action-deps, add github-action-deps-security
  3. docker (new)directory: / covers both Dockerfile and Dockerfile.dev (Dependabot scans all files matching the Dockerfile pattern), with docker-deps + docker-deps-security groups

Result

Going forward, each ecosystem gets:

  • one grouped PR for routine version bumps
  • one grouped PR for security bumps (instead of one PR per vulnerable dependency)

Existing open PRs (#57, #59#61) are unaffected; future updates will use the groups.

Validated: YAML parses; groups per ecosystem: npm [npm-deps, npm-deps-security], github-actions [github-action-deps, github-action-deps-security], docker [docker-deps, docker-deps-security].

Summary by CodeRabbit

  • Chores
    • Improved automated dependency update management by grouping security updates by ecosystem.
    • Added quarterly scanning for Docker dependencies.

- npm / github-actions: keep existing version-update groups, add
  applies-to: security-updates groups so security bumps are also
  batched instead of one PR per dependency (e.g. #59-#61)
- add missing docker ecosystem (covers Dockerfile and Dockerfile.dev
  base images) with version-update and security-update groups
@shenxianpeng
shenxianpeng requested a review from a team as a code owner August 2, 2026 09:46
@netlify

netlify Bot commented Aug 2, 2026

Copy link
Copy Markdown

Deploy Preview for devops-maturity-spec ready!

Name Link
🔨 Latest commit effc0c3
🔍 Latest deploy log https://app.netlify.com/projects/devops-maturity-spec/deploys/6a6f12041cd3de0008ee7bab
😎 Deploy Preview https://deploy-preview-62--devops-maturity-spec.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Aug 2, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Dependabot now groups npm and GitHub Actions security updates separately. It also configures quarterly Docker dependency and security-update scans from the repository root.

Changes

Dependabot update policy

Layer / File(s) Summary
Security groups and Docker schedule
.github/dependabot.yml
The configuration adds separate npm and GitHub Actions security-update groups. It adds quarterly Docker dependency and security-update groups for the repository root.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: grouping Dependabot updates by ecosystem, including security updates.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/dependabot-groups

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

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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/dependabot.yml:
- Around line 13-16: Update the Dependabot rollout plan to account for grouped
security updates replacing or closing existing security-update pull requests,
including the current npm-deps group update. Preserve the npm-deps-security
configuration while documenting or adjusting the plan for these grouped
replacements.
🪄 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 Plus

Run ID: 5b429591-15d2-4f90-b451-418cd320a2bf

📥 Commits

Reviewing files that changed from the base of the PR and between 2096c51 and effc0c3.

📒 Files selected for processing (1)
  • .github/dependabot.yml

Comment thread .github/dependabot.yml
Comment on lines +13 to +16
npm-deps-security:
applies-to: security-updates
patterns:
- "*"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

repo="$(gh repo view --json nameWithOwner --jq .nameWithOwner)"

gh pr list \
  --repo "$repo" \
  --state open \
  --limit 100 \
  --json number,title,headRefName,author \
  | jq '[.[] | select(.author.login | test("dependabot"; "i"))]'

Repository: devops-maturity/spec

Length of output: 1298


Grouped security-update changes can close existing Dependabot PRs.

GitHub may replace existing security-update pull requests when grouped security updates are enabled. If the rollout plan depends on preserving PRs such as the current open npm-deps group update, update the plan to accommodate grouped replacements.

Also applies to: 25-28

🤖 Prompt for 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.

In @.github/dependabot.yml around lines 13 - 16, Update the Dependabot rollout
plan to account for grouped security updates replacing or closing existing
security-update pull requests, including the current npm-deps group update.
Preserve the npm-deps-security configuration while documenting or adjusting the
plan for these grouped replacements.

@shenxianpeng
shenxianpeng deleted the chore/dependabot-groups branch August 3, 2026 13:00
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