Skip to content

ci: sync bun.lock on Dependabot PRs#45

Merged
beogip merged 1 commit into
mainfrom
ci/dependabot-bun-lockfile-sync
Jul 16, 2026
Merged

ci: sync bun.lock on Dependabot PRs#45
beogip merged 1 commit into
mainfrom
ci/dependabot-bun-lockfile-sync

Conversation

@beogip

@beogip beogip commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Summary

Dependabot updates package.json but does not regenerate Bun's text bun.lock (known upstream bug: dependabot/dependabot-core#11602). Every dependency PR therefore fails CI at bun install --frozen-lockfile, e.g. #43.

This adds a workflow that runs only on Dependabot PRs, regenerates bun.lock with bun install --lockfile-only, and pushes it back to the branch. The pushed commit retriggers CI with a consistent lockfile.

Why a push credential is needed

Commits pushed with the default GITHUB_TOKEN do not retrigger workflows, and on Dependabot-triggered runs that token is read-only anyway. The push therefore uses DEPLOY_KEY (the same read-write SSH deploy key already used by the release job).

Required manual step before this works

DEPLOY_KEY must be added as a Dependabot secret (Settings > Secrets and variables > Dependabot), not only an Actions secret. Actions secrets are not exposed to Dependabot-triggered runs.

Type of change

  • Bug fix
  • CI / tooling

Testing

@beogip
beogip merged commit a892491 into main Jul 16, 2026
6 checks passed
@beogip
beogip deleted the ci/dependabot-bun-lockfile-sync branch July 16, 2026 19:54
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