Repository navigation
ci: refresh bun.lock on Dependabot npm branches - #55
Merged
Merged
Conversation
code-yeongyu
force-pushed
the
ci/dependabot-bun-lock
branch
from
October 9, 2026 07:32
da42d3a to
6930201
Compare
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.
Problem
Dependabot's npm updater rewrites
package.jsonandpackage-lock.jsonbut neverbun.lock.ci.ymlinstalls withbun install --frozen-lockfile, so every npm Dependabot PR fails all four test legs at install time, before any test runs. #53 and #54 failed exactly that way, and each needed a hand-pushedbun.lockrefresh.Change
New workflow
.github/workflows/dependabot-bun-lock.yml. It runs only on pushes todependabot/npm_and_yarn/**branches, and only when the actor isdependabot[bot].Steps:
persist-credentials: false.bun install --ignore-scriptswith Bun 1.4.2, the version CI uses. Dependency lifecycle scripts never run, because this job holds a write token.bun.lockdidn't change, stop.bun.lockchanged, fail loudly instead of committing.bun.lockasgithub-actions[bot], push it to the same branch, and startci.ymlon it withworkflow_dispatch. A commit pushed withGITHUB_TOKENstarts no workflow on its own, which also means the workflow can't loop on its own push.Permissions:
contents: read.contents: writeto pushbun.lock, andactions: writeto dispatch CI. Dependabot-triggered workflows get a read-only token unless the workflow raises it this way.package-lock.jsonstays: the npm-consumer job uses it.Notes
@dependabot recreatestarts it over; the new branch is then refreshed again.actionlintis clean on the new file and onci.yml. The real test is the next npm Dependabot PR: it should get abuild(deps): refresh bun.lockcommit, then a green CI run on that commit.