8000 Keep GHCR builds green when visibility is private by dominicletz · Pull Request #6 · dominicletz/agentyard · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Oct 16, 2026. It is now read-only.

Keep GHCR builds green when visibility is private - #6

Merged
dominicletz merged 1 commit into
mainfrom
cursor/ghcr-visibility-fallback-14a8
Sep 25, 2026
Merged

dominicletz merged 1 commit into
mainfrom
cursor/ghcr-visibility-fallback-14a8

Conversation

@dominicletz
Copy link
Copy Markdown
Owner

Investigation

The merged workflow's image push succeeded, but the visibility request failed with curl exit 22. The exact response was:

{
  "message": "Not Found",
  "documentation_url": "https://docs.github.com/rest",
  "status": "404"
}

The repository owner is a user (dominicletz), and packages: write is sufficient to publish the image but does not grant the package-admin operation needed to change visibility. GitHub's current documented Packages REST endpoints do not expose a supported visibility-update endpoint for this Actions token.

Fix

  • keep the visibility attempt as a best-effort step with an explicit warning and continue-on-error
  • keep the image job green after a successful push
  • document the one-time GitHub UI step to set agentyard to Public
  • explain that public GHCR pulls are anonymous and therefore do not require GHCR_TOKEN on the normal deploy path; private-package credentials remain an optional fallback

First deploy after merging

Open the package settings at https://github.com/users/dominicletz/packages/container/agentyard/settings, choose Danger Zone → Change visibility → Public, and confirm the package name before relying on the automatic production deploy. Then bootstrap the server .env from .env.prod.example and configure the deploy SSH secrets. No GHCR secret is needed once the package is public.

Verification

  • git diff --check
  • actionlint .github/workflows/*.yml
  • PyYAML parsing of both workflow files
Open in Web Open in Cursor 

Co-authored-by: Dominic Letz <dominicletz@users.noreply.github.com>
@dominicletz
dominicletz marked this pull request as ready for review September 25, 2026 23:20
@dominicletz
dominicletz merged commit 4677f66 into main Sep 25, 2026
1 check passed
@dominicletz
dominicletz deleted the cursor/ghcr-visibility-fallback-14a8 branch September 25, 2026 23:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0