You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
image-build: the build-only PR arm never logs in to ghcr.io, so a public base-image pull on the shared runner is denied #280
image-build.yml logs in to ghcr.io only when it is PUBLISHING:
- name: Log in to ghcr.io (token on stdin, never argv)if: inputs.push
A build-only pull_request run that must pull a GHCR base image therefore falls back to
whatever credential the runner already has. On the shared opencharly-ubuntu runner that is
a stale/foreign ~/.docker/config.json, and the pull dies — even though the package is
public and anonymously pullable.
Measured on pod-crabbox-systemd PR #2 (build-only, push=false, base ghcr.io/opencharly/pod-crabbox:2026.307.1828), run 41897233189:
ensure-image: pulling ghcr.io/opencharly/pod-crabbox:2026.307.1828
Error response from daemon: error from registry: denied
ensure-image: pull ghcr.io/opencharly/pod-crabbox:2026.307.1828 failed: exit status 1
##[error]Process completed with exit code 1.
The same reference pulled anonymously from a clean host works:
The W5.2 variant repos cannot use the imported-source form: charly box build --push pushes
the whole resolved chain and a repo-scoped token cannot write the base packages
(#279). Their remedy is base: ghcr.io/opencharly/pod-crabbox:<tag> — the
published base as an OCI base — which is exactly the pull this build-only arm cannot make.
So one reusable-line defect blocks the whole variant family from building and publishing.
Intended scope
Log in on every run (the run's github.token with packages: write for its own repo can read
public packages), or isolate/clear the runner's docker config per job so a build-only run
never inherits a foreign credential. The PR build then pulls the public base and builds.
Evidence
run 41897233189 (pod-crabbox-systemd PR docs: require full-model AI attribution #2, head ced6445d): error from registry: denied
on the base pull; the validate / validate check PASSed and the local build + 9 checks
passed, so the code is not the failing part.
skopeo --authfile '{}' on the same ref: digest sha256:33d44b50… (public).
The base repo's own publish (which does log in) pulls and pushes the same package fine.
Agent: containerd-crabbox-program/w5 Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
RESOLVED — merged as opencharly/.github#281 (squash ac11f8ca74aa6455f4a645e4130181c8f55f2b87, tag v2026.308.2005).
The login step carried if: inputs.push, so a build-only pull_request run never authenticated — and a variant's base: is an image in this registry, so the build still pulled. On the shared runner that pull fell back to a stale ~/.docker/config.json and was denied even for a public package.
Causal evidence, not a conclusion:
run 41900308602 (pod-crabbox-systemd probe, build-only pull_request, caller pinned to the fix branch)
… Login Succeeded
image / build completed/success
no `denied`, no `error from registry:` anywhere in the log
Same workflow, same runner class, where -systemd, -code, -browser and -gpu had each failed with error from registry: denied.
Coverage that fails without the change:scripts/image-build-tag_test.sh now reads the shipped login step and fails on any if:, with a control that restores the old condition into a copy and requires the check to go RED there — rc=1 pre-fix, rc=0 on the merged tree.
The probe PR (pod-crabbox-systemd#3) was closed unmerged; it existed only to run the changed step once before merge.
Agent: containerd-crabbox-program · session 8b1c01cf-7f79-4a75-bff8-240415a06208 Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Activity
fix(ci): log in to ghcr.io on every image-build run, not only when pu…
aitrawog commentedon Nov 4, 2026
RESOLVED — merged as
opencharly/.github#281(squashac11f8ca74aa6455f4a645e4130181c8f55f2b87, tagv2026.308.2005).The login step carried
if: inputs.push, so a build-onlypull_requestrun never authenticated — and a variant'sbase:is an image in this registry, so the build still pulled. On the shared runner that pull fell back to a stale~/.docker/config.jsonand was denied even for a public package.Causal evidence, not a conclusion:
Same workflow, same runner class, where
-systemd,-code,-browserand-gpuhad each failed witherror from registry: denied.Coverage that fails without the change:
scripts/image-build-tag_test.shnow reads the shipped login step and fails on anyif:, with a control that restores the old condition into a copy and requires the check to go RED there —rc=1pre-fix,rc=0on the merged tree.The probe PR (
pod-crabbox-systemd#3) was closed unmerged; it existed only to run the changed step once before merge.Agent:
containerd-crabbox-program· session8b1c01cf-7f79-4a75-bff8-240415a06208Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)