Prebuilt GHCR image is not anonymously pullable: is the package private on purpose?

Aperta
#485 3 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, docker-compose, github, github-actions

Direzione di ricerca

Start with the README's GHCR install sections, docker-compose.ghcr.yml, and the push step in release.yml. Reproduce with an anonymous docker pull or the curl token request from the issue. Done means either the package is public and an anonymous pull succeeds, or the docs state that a PAT with read:packages is required. The visibility change needs maintainer access, so confirm the decision before editing docs.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug P2

The README presents the GHCR image as a normal install path ("Option 2", the "Compose stack from the prebuilt image" section and docker-compose.ghcr.yml), but on a machine without GHCR credentials every documented command fails:

$ docker pull ghcr.io/baarai/artex:latest
Error response from daemon: error from registry: denied

$ docker compose -f docker-compose.ghcr.yml pull
Error response from daemon: error from registry: denied

The anonymous token request is denied as well:

$ curl "https://ghcr.io/token?scope=repository:baarai/artex:pull&service=ghcr.io"
{"errors":[{"code":"DENIED","message":"requested access to the resource is denied"}]}

Cross-checks: https://github.com/BaaRai/ARTEX/pkgs/container/artex returns 404 without auth, hub.docker.com has no baarai/artex, and the old ghcr.io/autumn-27/artex namespace is denied too — so this is not a package lost in the repository transfer.

Is this deliberate? #466 shipped the publish step (d86b227), and README:350 already asks the maintainer to switch the package to Public and verify an anonymous pull before announcing it, so this looks like a step that was missed rather than a decision.

If public is fine, would you:

  1. set Package settings → Change visibility → Public for artex, and
  2. keep it from regressing — e.g. after the push in release.yml, run crane digest ghcr.io/${{ github.repository }}:${TAG} without credentials and fail the job when that is denied, or add the check to the release checklist.

If keeping it private is intentional, the docs should say so: a line in the README and a comment at the top of docker-compose.ghcr.yml stating that docker login ghcr.io with a PAT carrying read:packages is required, plus the login step in the snippet. Right now a user without a PAT cannot install at all, and nothing tells them why.

Either way the current state is a documentation bug: the quick start promises a pull that fails for the audience it is written for.

Environment: ARTEX v0.7.0 (main @ 565f448), Docker Engine + compose v2, Linux, no GHCR credentials in the Docker config.

Lingua principale
Go
Stelle
18.7k
Fork
7k
Merge medio
10h 41m
PR unite (30g)
342

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di BaaRai/ARTEX

Tutte le issue di BaaRai/ARTEX

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.