diff --git a/.github/workflows/release-helm-chart.yaml b/.github/workflows/release-helm-chart.yaml index 76984699..e6d627ea 100644 --- a/.github/workflows/release-helm-chart.yaml +++ b/.github/workflows/release-helm-chart.yaml @@ -65,5 +65,5 @@ jobs: run: | make helm-sync-package \ VERSION=${{ inputs.operatorVersion }} \ - GITHUB_TOKEN=${{ secrets.HELM_WORKFLOWS_TOKEN }} \ + HELM_WORKFLOWS_TOKEN=${{ secrets.HELM_WORKFLOWS_TOKEN }} \ BROWSER_DOWNLOAD_URL=${{ steps.upload-chart.outputs.browser_download_url }} diff --git a/make/helm.mk b/make/helm.mk index 768bcfac..b780b40d 100644 --- a/make/helm.mk +++ b/make/helm.mk @@ -31,7 +31,7 @@ helm-package: $(HELM) ## Package the helm chart $(HELM) package charts/limitador-operator # GitHub Token with permissions to upload to the release assets -GITHUB_TOKEN ?= +HELM_WORKFLOWS_TOKEN ?= # GitHub Release Asset Browser Download URL, it can be find in the output of the uploaded asset BROWSER_DOWNLOAD_URL ?= # Github repo name for the helm charts repository @@ -47,7 +47,7 @@ helm-sync-package: $(HELM) ## Sync the helm chart package to the helm-charts rep curl -L \ -X POST \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer $(GITHUB_TOKEN)" \ + -H "Authorization: Bearer $(HELM_WORKFLOWS_TOKEN)" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/$(ORG)/$(HELM_REPO_NAME)/dispatches \ -d '{"event_type":"sync-chart","client_payload":{"chart":"$(REPO_NAME)","version":"$(CHART_VERSION)", "browser_download_url": "$(BROWSER_DOWNLOAD_URL)"}}'