From a78685e2f5b9e3f4ec60bcd7108fa6c1959b7d88 Mon Sep 17 00:00:00 2001 From: Guy Saar Date: Wed, 21 Oct 2026 15:38:06 -0500 Subject: [PATCH] Push the helm-docs README commit with a comet-ci App token update-readme pushes the regenerated README straight to main, which the ruleset on main only allows for bypass actors, so it used the org PAT. Use a short-lived comet-ci App token limited to this repo (contents: write) instead. The chart release keeps using GITHUB_TOKEN. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1e34383..c93c429 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -53,11 +53,21 @@ jobs: # make commit with staged changes git commit -m 'Update README.md with helm-docs' + # comet-ci App token: the README commit goes straight to main, which only the + # ruleset's bypass actors may do (GITHUB_TOKEN can't). + - name: Mint GitHub App token + id: app-token + uses: actions/create-github-app-token@v3.3.0 + with: + client-id: ${{ vars.COMET_CI_APP_CLIENT_ID }} + private-key: ${{ secrets.COMET_CI_APP_PRIVATE_KEY }} + permission-contents: write + - name: Push changes if: success() uses: ad-m/github-push-action@master with: - github_token: ${{ secrets.GH_PAT_TO_ACCESS_GITHUB_API }} + github_token: ${{ steps.app-token.outputs.token }} branch: main release: