From 9f7c141d52f8e8ad070387c4c792605dff2ecd07 Mon Sep 17 00:00:00 2001 From: dd di cesare Date: Tue, 18 Jun 2024 10:19:05 +0200 Subject: [PATCH] [refactor] Renaming the token to match the actual in use one --- make/helm.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)"}}'