ci: upload the Arch package with a package token, since the registry rejects the job token #21

Merged
tri merged 1 commits from ci/arch-package-token into main 2026-11-14 02:42:32 +07:00
Owner

The first Arch package run built qtpotato-0.1.0-1 but failed to upload it with HTTP 401. Gitea's package registry rejects the Actions job token: a probe got 401 with it as a token header, as Bearer, and as basic auth. The same token got 200 from the normal API. The workflow now uses a PACKAGE_TOKEN secret, a personal access token with only the write:package scope, which has been added to the repo.

Proof: the run for v0.1.0 built the package (8/8 tests) and failed only at upload with 401. A request with the new token to the package API is authenticated. The full upload is checked after merge by rerunning for v0.1.0.

Created with Claude Opus 5.5 in Claude Code (T3 Code).

The first Arch package run built `qtpotato-0.1.0-1` but failed to upload it with HTTP 401. Gitea's package registry rejects the Actions job token: a probe got 401 with it as a `token` header, as `Bearer`, and as basic auth. The same token got 200 from the normal API. The workflow now uses a `PACKAGE_TOKEN` secret, a personal access token with only the `write:package` scope, which has been added to the repo. Proof: the run for `v0.1.0` built the package (8/8 tests) and failed only at upload with 401. A request with the new token to the package API is authenticated. The full upload is checked after merge by rerunning for `v0.1.0`. Created with Claude Opus 5.5 in Claude Code (T3 Code).
tri added 1 commit 2026-11-14 02:34:54 +07:00
ci: publish the Arch package with a package token
CI / build (pull_request) Successful in 5m6s
fae328d941
tri merged commit 015626b65b into main 2026-11-14 02:42:32 +07:00
tri deleted branch ci/arch-package-token 2026-11-14 02:43:15 +07:00
Sign in to join this conversation.