Fix the Hugging Face deploy by pinning the action's build branch - #2244
Merged
Conversation
The deploy has been broken since #2145 pinned the action by digest. The first dispatch after that pin failed with: File not found: '.../huggingface-sync/60850d5a.../dist/index.js' JacobLinCool/huggingface-sync gitignores `dist/` and ships its build output on the `v1` branch. Its release tags point at source commits, so any digest resolved from a tag lands on a tree with no `dist/index.js`, and the step fails before it runs. The workflow used the mutable `v1` ref until #2145, which is why it worked before. Pins the tip of the `v1` branch instead, keeping a digest pin while pointing at a tree that actually contains the entrypoint. That commit also declares `node24`, so the Node 20 deprecation warning goes away too. Also disables Renovate for this one action. It resolves digests from tags, so every update it proposes reintroduces the same breakage; it has already done so twice (#2145, #2159).
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.
Description
Fixes the Hugging Face deploy, which fails immediately with:
JacobLinCool/huggingface-syncgitignoresdist/and publishes its build output on itsv1branch. Its release tags point at source commits, so a digest resolved from a tag lands on a tree with nodist/index.js, and the step fails before any of its code runs. Every tag is affected,v1.0.0throughv1.3.1.The workflow used the mutable
v1ref until #2145 pinned it by digest. Today's dispatch was the first one since, which is why the last success (2026-07-16) predates the pin:@v1(branch)@3e022764(thev1.3.1tag object)@60850d5a(the commit that tag points at)This pins the tip of the
v1branch,48eb4994, which keeps a digest pin while pointing at a tree that actually contains the entrypoint. It is not a regression of #2145's hardening: the ref is still an immutable commit SHA, just one on the branch that carries the build.That commit also declares
using: node24rather thannode20, so the deprecation warning in the failed run goes away as well.Nothing about this is related to the reranker work in #2235. The action never got far enough to read the repository.
Renovate
Renovate resolves action digests from tags, so for this action every update it proposes reintroduces the same breakage. It has already done so twice, in #2145 and #2159, and both times the failure was invisible until someone dispatched the workflow by hand.
renovate.jsonnow disables updates for this one action, with the reason recorded inline. The trade-off is deliberate: automated bumps here have a 100% failure rate, so the pin is better maintained by hand.Type of Change
How to test
I did not dispatch the workflow, because a successful run publishes to the live Space. That is yours to trigger when you want the deploy to happen.
What I verified without running it:
dist/index.jsexists at the new pin (1,064,554 bytes):gh api "repos/JacobLinCool/huggingface-sync/contents/dist?ref=48eb49940149dc1015d8294621cb203635fe9ff3"gh api "repos/JacobLinCool/huggingface-sync/contents/dist?ref=v1.3.1"returns 404.action.ymlat the new pin declaresmain: "dist/index.js"withusing: "node24".48eb4994is the current tip ofrefs/heads/v1, so it is the same code the workflow ran successfully before Harden CI workflows and Docker build #2145.renovate-config-validator renovate.jsonreportsConfig validated successfully.To confirm end to end, run the Deploy to Hugging Face workflow from this branch and check the step gets past loading the action.
Checklist
npm run lintpassesnpm run test), with tests added where it made senseNo tests: the change is a workflow pin and a Renovate rule, neither of which the suite covers.
Security, performance, or breaking changes
The action is still pinned to an immutable commit SHA, so #2145's supply-chain intent holds. The one reduction in automation is that Renovate no longer watches this action, so a genuine upstream fix will need picking up by hand. Worth revisiting if upstream starts shipping
dist/on its tags.