From 0b9e701efcd8aabf90d24e92d9470199c451235c Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Wed, 15 Apr 2026 08:41:18 +0200 Subject: [PATCH] ci: use GitHub App token to bypass branch protection --- .github/workflows/auto-update-app-headers.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-update-app-headers.yml b/.github/workflows/auto-update-app-headers.yml index 17330782..2a60cdef 100644 --- a/.github/workflows/auto-update-app-headers.yml +++ b/.github/workflows/auto-update-app-headers.yml @@ -19,11 +19,20 @@ jobs: contents: write steps: + - name: Generate app token + id: generate-token + uses: actions/create-github-app-token@v2 + with: + app-id: ${{ vars.APP_ID }} + private-key: ${{ secrets.APP_PRIVATE_KEY }} + owner: community-scripts + repositories: ProxmoxVED + - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ steps.generate-token.outputs.token }} - name: Set up Git run: | @@ -51,6 +60,8 @@ jobs: - name: Commit and push changes if: steps.check_changes.outputs.changed == 'true' + env: + GH_TOKEN: ${{ steps.generate-token.outputs.token }} run: | git commit -m "chore: update app headers [skip ci]" git pull --rebase origin main