Repository navigation
fix(ci): pass GITHUB_TOKEN to the pin resolvers - #610
Merged
jing2uo merged 1 commit intoOct 11, 2026
Merged
Conversation
131 of the 154 resolvers reach the GitHub API and every one of them already reads GITHUB_TOKEN, but neither workflow step that runs check-updates.sh sets it, so the calls go out anonymously against a 60-per-hour per-IP budget shared with everything else on the runner's egress address. A full sweep needs 131. In update-check flatpark#131 the 403s begin at app 47 of 154 and from there every resolver that reaches the API fails, 89 in all; the 19 that still resolve are the ones that never call it. None of the 89 are held back, so they keep their current pins, stay out of the held-back alert, and the run goes green.
Collaborator
|
The pr-checks guard holds infrastructure changes to a strict rule, so that check can't pass here. I reviewed the change by hand: it's sound, safe and minimal, so I merged it. Thanks for the report. I'll go through all the resolvers right away, fix the broken ones, and add failure reporting so this can't go silently green again. |
This was referenced Oct 11, 2026
jing2uo
added a commit
that referenced
this pull request
Oct 11, 2026
Both failed on every sweep, which until now nobody saw (#610, #611). CrealityPrint: v7.3.0 carries three plain Release AppImages, .6149, .6151 and .6157, re-uploads under the same tag, and the resolver required exactly one. It now takes the highest build and reports <tag>.<build> as the version, so a later re-upload under the same tag is still picked up. Decodium: v1.0.670-672 shipped only the Windows installer, so /releases/latest had no AppImage. The resolver now takes the newest stable release that has the x86_64 AppImage and logs the newer ones it skipped.
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 - neither workflow step that runs
check-updates.shsetsGITHUB_TOKEN:update-check.yml"Recompute pins from upstream" andrelease-dispatch.yml"Recompute pins for the released app".Why it matters - 131 of the 154 resolvers reach the GitHub API, 130 by curl
and OpenTubeX by
gh api, and every one of them already readsGITHUB_TOKEN.Unset, the calls go out anonymously on a 60-per-hour per-IP budget shared with
everything else on that runner's egress address. A full sweep needs 131.
In update-check #131 the 403s begin at app 47 of 154. From there every resolver
that reaches the API fails, 89 in all; the 19 that still resolve are the ones
that never call it. The one apparent exception, ShutterEncoder, uses the API
only for a release date and swallows the error on purpose.
Nothing reports it. A failed resolver writes no pin, so the app never enters
held,Fail if any pin was held backnever fires, and the run is green. Those89 keep their current pins. I found it through
org.libredb.Studio, which Ihelp maintain here: pinned at 0.17.0 while upstream is 0.18.2.
Expected after merge - the first sweep will resolve far more apps than
recent runs have, so
Verify the new payloads unpackwill download and unpackmany payloads and that run will be much longer than usual. Some pins may be
held back legitimately.
Expected red check - this touches
.github/, soguard-infrafails for anon-collaborator author by design. Per docs/pr-review.md Phase 1 that needs a
maintainer look rather than a fix from me.
Testing - the counts come from run #131's own log. I cannot run the
scheduled workflow, so the authenticated path is untested here; the resolvers'
existing
${GITHUB_TOKEN:+...}form means an unset value behaves exactly as itdoes today.