From 2c93df73078984ff8e12104d26dffa95f01ac1e6 Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Fri, 17 Apr 2026 03:16:47 +1000 Subject: [PATCH] Add token authentication for auto-merge --- .gitea/workflows/validate-pr.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/validate-pr.yml b/.gitea/workflows/validate-pr.yml index 04c1821..eeb5aeb 100644 --- a/.gitea/workflows/validate-pr.yml +++ b/.gitea/workflows/validate-pr.yml @@ -77,11 +77,22 @@ jobs: run: | cd pr echo "✅ Validation passed - Auto-merging PR" - git config user.name "GitHub Actions" - git config user.email "actions@github.com" + + # Configure git with token authentication + git config user.name "gitea-actions[bot]" + git config user.email "gitea-actions[bot]@users.noreply.gitea.io" + + # Set up authenticated remote URL + git remote set-url origin "http://oauth2:${{ secrets.AUTO_MERGE_TOKEN }}@synbox.ruv.wtf:8418/litruv/Plugin-Directory.git" + + # Fetch and merge git fetch origin ${{ github.event.pull_request.head.ref }} git checkout main git merge --squash origin/${{ github.event.pull_request.head.ref }} git commit -m "${{ github.event.pull_request.title }}" + + # Push changes git push origin main + + # Delete the PR branch git push origin --delete ${{ github.event.pull_request.head.ref }}