From 605aeb9fc4ca92deb7050cea68eaaf1c2476263e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 18 Oct 2024 11:48:03 +0200 Subject: [PATCH] Use token with write permissions on checkout Avoiding cached token not being able to push --- .gitea/workflows/patchinfo_numberator.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/patchinfo_numberator.yaml b/.gitea/workflows/patchinfo_numberator.yaml index baca997..1e9c590 100644 --- a/.gitea/workflows/patchinfo_numberator.yaml +++ b/.gitea/workflows/patchinfo_numberator.yaml @@ -13,7 +13,7 @@ jobs: steps: # We should provide go with our image already? - name: Setup Go - uses: https://token:${{ secrets.REPO_CLONE }}@src.suse.de/actions/github-setup-go@v5 + uses: https://token:${{ secrets.REPO_WRITE }}@src.suse.de/actions/github-setup-go@v5 with: go-version: '1.20' # To be obsoleted @@ -26,7 +26,7 @@ jobs: uses: https://token:${{ secrets.REPO_WRITE }}@src.suse.de/actions/github-actions-checkout@v4 # Updating incident numbers - name: Update all new _patchinfo files - uses: https://token:${{ secrets.REPO_CLONE }}@src.suse.de/actions/patchinfo-numbering-action@v0 + uses: https://token:${{ secrets.REPO_WRITE }}@src.suse.de/actions/patchinfo-numbering-action@v0 - name: Get last commit message id: last-commit run: | @@ -37,6 +37,5 @@ jobs: commit_author: ${{ steps.last-commit.outputs.author }} commit_message: "Update incident numbers" commit_options: '--no-edit' - skip_fetch: true