From 4361807d0862c0681c66dbfaa01b24d25f34ee57 Mon Sep 17 00:00:00 2001
From: bakhtin
Date: Tue, 15 Aug 2023 15:44:59 +0100
Subject: [PATCH] Switch to using GH App for pushing to gh-pages branch
Signed-off-by: bakhtin
---
.github/workflows/release.yaml | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index fd6cd63e..17b177b2 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -13,6 +13,7 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
+ persist-credentials: false
- name: Configure Git
run: |
@@ -28,9 +29,16 @@ jobs:
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
+ - name: Retrieve GH app token
+ id: generate-github-app-token
+ uses: getsentry/action-github-app-token@v2
+ with:
+ app_id: ${{ secrets.CHART_UPDATER_APP_ID }}
+ private_key: ${{ secrets.CHART_UPDATER_APP_KEY }}
+
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.5.0
env:
- CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
+ CR_TOKEN: ${{ steps.generate-github-app-token.outputs.token }}
with:
charts_dir: charts