ci(deps): retire root npm from Dependabot, add native bun update (ARC-304) - #43
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.



What / Why — ARC-304 (follow-up of ARC-297)
Dependabot's npm updater bumps
package.jsonbut cannot regenerate bun'sbun.lock(bun's lockfile is unsupported). Every root npm Dependabot PRtherefore left the lockfile stale and CI failed with:
bun install --frozen-lockfileruns in bothci.yml(Test) andsecurity.yml(Dependency audit), so those PRs could never go green.
Decision — Option 2 (native, no elevated auto-commit)
Chosen over Option 1 (auto-commit onto Dependabot's own branches) because it is
strictly safer: no untrusted PR-head checkout, no write token exposed to a
third-party dependency's install scripts, no
pull_request_target.This PR:
npmecosystem from.github/dependabot.yml(keeps
github-actions; claudeline also keeps the real-npm/docs/remotion)..github/workflows/deps-bun-update.yml— a scheduled + on-demandjob that runs
bun update, regeneratesbun.lockin the same commit,and opens its own PR (green under
--frozen-lockfile).Why CVE coverage is NOT lost
version-update stanza leaves no orphaned security PRs.
bun audit+ OSV scan already run as required checks on every PR/push andon the weekly Security cron — CVE detection is unchanged. The native
workflow (weekly +
workflow_dispatch) provides remediation.The workflow uses a scoped GitHub App token so the auto-PR triggers CI
(PRs opened with the default
GITHUB_TOKENdo not trigger workflows).Before/at merge, a human must:
contents: write+pull_requests: write.DEPS_BOT_APP_ID+DEPS_BOT_APP_PRIVATE_KEYas Actions secrets(gate humano — secret-seal; CSO visibility on token scope).
Until then the mint step fails fast and no PR is opened (harmless). After the
secrets exist, run the "Deps — bun update" workflow via
workflow_dispatchto produce the green proof PR.
proposer ≠ executor,reviewer ≠ builder: authored by it-admin; merge isthe human gate and must be a separate identity.