Automatically set Helm chart package visibility to public (related to #686)

The pulse-chart package in GHCR currently requires authentication for pulls
because it defaults to private visibility. This affects all users trying to
install via `helm install oci://ghcr.io/rcourtman/pulse-chart`.

This commit adds a workflow step to automatically set the package to public
after each push, enabling anonymous pulls without requiring `helm registry login`.

Note: The existing package will need one-time manual configuration via GitHub
web UI until the next release triggers this workflow.

Related to discussion #686
This commit is contained in:
rcourtman 2025-11-11 17:19:03 +00:00
parent 13a469362a
commit 8f0a548e3d

View file

@ -82,6 +82,14 @@ jobs:
helm push dist/pulse-${{ steps.versions.outputs.chart_version }}.tgz \
oci://ghcr.io/${{ github.repository_owner }}/pulse-chart
- name: Make package public
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
# Set package visibility to public for anonymous pulls
gh api -X PATCH /user/packages/container/pulse-chart -f visibility=public || \
echo "Warning: Could not set package visibility. May need manual configuration."
- name: Attach chart to release
if: github.event_name == 'release'
env: