Repository navigation
ci(dependabot): use the x2od reusable Dependabot workflow - #201
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
.github/workflows/dependabot-approve-and-auto-merge.yml.github/workflows/dependabot-update.yml.github/dependabot.ymlopen-pull-requests-limit: 0stops version update PRs. This repository gets no version update PRs.New rules
For all 3 dependency types (production, development, and indirect):
For each Dependabot PR, the workflow also puts the package name in the title scope and adds the
dependabotlabel. After a successful merge, it adds theauto-mergedlabel.The default
merge-mode: autouses 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
Before this works fully
DEPENDABOT_TOKEN2 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 theGITHUB_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
actionlintpasses, and the YAML parses. The reusable workflow has its own test suite in x2od/.github.🤖 Generated with Claude Code