From 7937b4515c89044bf852191507c44eb2d0915d51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Mon, 30 Sep 2024 16:31:55 +0200 Subject: [PATCH] Using a token for cloning actions. IMHO no the best approach, we should have a default setting in our runner. But it should work that way for now until we find a better way. --- .gitea/workflows/patchinfo_numberator.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/patchinfo_numberator.yaml b/.gitea/workflows/patchinfo_numberator.yaml index 94900ea..ec99b6d 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://src.suse.de/actions/github-setup-go@v5 + uses: https://token:${{ secrets.REPO_CLONE }}@src.suse.de/actions/github-setup-go@v5 with: go-version: '1.20' # To be obsoleted @@ -23,16 +23,16 @@ jobs: zypper in -y ca-certificates-suse ca-certificates-suse-ucs # Generic action from GitHub to clone the product git repo - name: Checkout product - uses: https://src.suse.de/actions/github-actions-checkout@v4 + uses: https://token:${{ secrets.REPO_CLONE }}@src.suse.de/actions/github-actions-checkout@v4 # Updating incident numbers - name: Update all new _patchinfo files - uses: https://src.suse.de/actions/patchinfo-numbering-action@v0 + uses: https://token:${{ secrets.REPO_CLONE }}@src.suse.de/actions/patchinfo-numbering-action@v0 - name: Get last commit message id: last-commit run: | echo "author=$(git log -1 --pretty=\"%an <%ae>\")" >> $GITHUB_OUTPUT - name: Commit changes back - uses: https://src.suse.de/actions/stefanzweifel-git-auto-commit-action@v5 + uses: https://token:${{ secrets.REPO_CLONE }}@src.suse.de/actions/stefanzweifel-git-auto-commit-action@v5 with: commit_author: ${{ steps.last-commit.outputs.author }} commit_message: "Update incident numbers"