Skip to content

ci(dependabot): use the x2od reusable Dependabot workflow - #201

Merged
dschach merged 2 commits into
mainfrom
ci/dependabot-reusable-workflow
Oct 17, 2026
Merged

dschach merged 2 commits into
mainfrom
ci/dependabot-reusable-workflow

Conversation

@dschach

@dschach dschach commented Oct 17, 2026

Copy link
Copy Markdown
Owner

Summary

This PR replaces the old Dependabot workflow of this repository with a caller of the x2od reusable Dependabot workflow, and updates the Dependabot configuration.

Changes

File Change
.github/workflows/dependabot-approve-and-auto-merge.yml Removed
.github/workflows/dependabot-update.yml New. Calls the x2od reusable workflow 3 times, 1 time for each dependency type.
.github/dependabot.yml Rewritten to match x2od/.github, with accurate comments. Security updates only: open-pull-requests-limit: 0 stops version update PRs. This repository gets no version update PRs.

New rules

For all 3 dependency types (production, development, and indirect):

  • Approve and merge minor and patch updates.
  • Approve and merge security updates at all levels, including major.
  • Major updates that are not security fixes need a manual review.

For each Dependabot PR, the workflow also puts the package name in the title scope and adds the dependabot label. After a successful merge, it adds the auto-merged label.

The default merge-mode: auto uses GitHub auto-merge if the repository allows it. If not, it waits in the job for the other checks to pass, and then merges with a squash.

Notes for this repository

  • None.

Before this works fully

  • Optional: add a PAT named DEPENDABOT_TOKEN 2 times in this repository: as a Dependabot secret (Settings > Secrets and variables > Dependabot) and as an Actions secret (> Actions). Runs that Dependabot starts can read only Dependabot secrets. Without the PAT, the workflow uses the GITHUB_TOKEN: the merge does not start other workflows, and security updates are not found. The PAT permissions are listed at the top of the reusable workflow.

Testing

actionlint passes, and the YAML parses. The reusable workflow has its own test suite in x2od/.github.

🤖 Generated with Claude Code

dschach and others added 2 commits October 17, 2026 14:42
Replace the old Dependabot workflow with dependabot-update.yml, which calls
the x2od reusable workflow 3 times (production, development, indirect).
Each call approves and merges minor, patch, and security updates. Major
updates that are not security fixes need a manual review.

Update .github/dependabot.yml to match x2od/.github, with comments that fit
this repository.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dschach
dschach merged commit aabf836 into main Oct 17, 2026
3 checks passed
@dschach
dschach deleted the ci/dependabot-reusable-workflow branch October 17, 2026 03:49
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