Skip to content

fix(ci): pass GITHUB_TOKEN to the pin resolvers - #610

Merged
jing2uo merged 1 commit into
flatpark:mainfrom
yusuf-gundogdu:fix/pass-github-token-to-resolvers
Oct 11, 2026
Merged

jing2uo merged 1 commit into
flatpark:mainfrom
yusuf-gundogdu:fix/pass-github-token-to-resolvers

Conversation

@yusuf-gundogdu

Copy link
Copy Markdown
Contributor

What - neither workflow step that runs check-updates.sh sets
GITHUB_TOKEN: update-check.yml "Recompute pins from upstream" and
release-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 reads GITHUB_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 back never fires, and the run is green. Those
89 keep their current pins. I found it through org.libredb.Studio, which I
help 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 unpack will download and unpack
many payloads and that run will be much longer than usual. Some pins may be
held back legitimately.

Expected red check - this touches .github/, so guard-infra fails for a
non-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 it
does today.

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.
@jing2uo
jing2uo merged commit 906ddce into flatpark:main Oct 11, 2026
@jing2uo

jing2uo commented Oct 11, 2026

Copy link
Copy Markdown
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.

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.
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.

2 participants