From b6aa1fe592f22264689b72a19e1ce4216122e7f7 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Tue, 11 Nov 2025 17:35:45 +0000 Subject: [PATCH] Improve Helm chart package visibility configuration (related to #686) Add fallback attempts to set package visibility through multiple API endpoints. Also adds helpful output message with verification link. --- .github/workflows/publish-helm-chart.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-helm-chart.yml b/.github/workflows/publish-helm-chart.yml index ca0fc86..22b58d5 100644 --- a/.github/workflows/publish-helm-chart.yml +++ b/.github/workflows/publish-helm-chart.yml @@ -82,13 +82,19 @@ jobs: helm push dist/pulse-${{ steps.versions.outputs.chart_version }}.tgz \ oci://ghcr.io/${{ github.repository_owner }}/pulse-chart - - name: Make package public + - name: Configure package visibility 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." + # Connect package to repository and set visibility to public + # This ensures the package inherits public visibility and appears in repo packages + gh api -X PUT /user/packages/container/pulse-chart/versions/latest/restore || true + gh api -X PATCH /user/packages/container/pulse-chart -f visibility=public || true + + # Also try org endpoint if user endpoint fails + gh api -X PATCH /orgs/${{ github.repository_owner }}/packages/container/pulse-chart -f visibility=public || true + + echo "Package visibility configuration attempted. Verify at: https://github.com/${{ github.repository_owner }}?tab=packages" - name: Attach chart to release if: github.event_name == 'release'