8000 Make the GHCR image package public after builds by dominicletz · Pull Request #5 · 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.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,18 @@ jobs:
ghcr.io/dominicletz/agentyard:main
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Make GHCR package public
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -eu
# This idempotent PATCH returns success when the package is already public.
curl --fail-with-body --silent --show-error \
--request PATCH \
--header "Accept: application/vnd.github+json" \
--header "Authorization: Bearer ${GH_TOKEN}" \
--header "X-GitHub-Api-Version: 2022-11-28" \
--header "Content-Type: application/json" \
--data '{"visibility":"public"}' \
"${{ github.api_url }}/user/packages/container/agentyard"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Visibility PATCH uses unsupported API

High Severity

The new step PATCHes /user/packages/container/agentyard with GITHUB_TOKEN. That packages route only documents GET and DELETE, and /user/ expects a user token rather than the Actions token. curl --fail-with-body then fails the job after the image push, so the workflow_run production deploy never starts.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5a86c1d. Configure here.

Loading
0