ci: sync bun.lock on Dependabot PRs#45
Merged
Merged
Conversation
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
Dependabot updates
package.jsonbut does not regenerate Bun's textbun.lock(known upstream bug: dependabot/dependabot-core#11602). Every dependency PR therefore fails CI atbun install --frozen-lockfile, e.g. #43.This adds a workflow that runs only on Dependabot PRs, regenerates
bun.lockwithbun 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_TOKENdo not retrigger workflows, and on Dependabot-triggered runs that token is read-only anyway. The push therefore usesDEPLOY_KEY(the same read-write SSH deploy key already used by the release job).Required manual step before this works
DEPLOY_KEYmust 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
Testing