From cc16a5cc93c2a165367b577984385e2d274f2c48 Mon Sep 17 00:00:00 2001 From: Afonso Dutra Nogueira Filho Date: Tue, 17 Feb 2026 21:04:04 -0300 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=94=A7=20Fix=20auto-PR=20workflow=20a?= =?UTF-8?q?uthentication=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: - GitHub API authentication failing in auto-PR workflow - Error: 'fatal: unable to access' when creating PR - Issue with dynamic username reference in assignee field Solution: - Replace dynamic username reference with fixed assignee - Use 'afonsoft' instead of github.event.head_commit.author.username - This avoids authentication issues and API errors Changes: - Fixed assignee field in gh pr create command - Removed problematic dynamic reference - Maintained all other functionality 🎯 Auto-PR workflow should now work without authentication errors! --- .github/workflows/auto-pr-from-main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-pr-from-main.yml b/.github/workflows/auto-pr-from-main.yml index b72eb89..d8b3fb9 100644 --- a/.github/workflows/auto-pr-from-main.yml +++ b/.github/workflows/auto-pr-from-main.yml @@ -112,7 +112,7 @@ jobs: --base main \ --head $BRANCH_NAME \ --label "dependencies,auto-update" \ - --assignee ${{ github.event.head_commit.author.username }} || echo "PR already exists or creation failed" + --assignee afonsoft || echo "PR already exists or creation failed" echo "✅ Dependency update PR created successfully" From 39aa7943745b7ced0e726777630d235b39f10965 Mon Sep 17 00:00:00 2001 From: Afonso Dutra Nogueira Filho Date: Tue, 17 Feb 2026 21:07:09 -0300 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=94=A7=20Fix=20auto-PR=20workflow=20t?= =?UTF-8?q?oken=20authentication?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: - Create PR workflow failing with authentication error - 'fatal: unable to access' when using gh CLI - Token permission issues with GitHub API Solution: - Use PAT_TOKEN as primary token with fallback to GITHUB_TOKEN - This ensures proper authentication for different scenarios - Maintains backward compatibility with existing workflows Changes: - Updated token reference in create-pr workflow - Added PAT_TOKEN as primary authentication method - Fallback to GITHUB_TOKEN for compatibility 🎯 Auto-PR workflow should now work with proper authentication! --- .github/workflows/ci-build-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-build-test.yml b/.github/workflows/ci-build-test.yml index 0c56c93..fddd672 100644 --- a/.github/workflows/ci-build-test.yml +++ b/.github/workflows/ci-build-test.yml @@ -271,7 +271,7 @@ jobs: - name: 🔄 Create PR to main uses: peter-evans/create-pull-request@v5 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PAT_TOKEN || secrets.GITHUB_TOKEN }} commit-message: "🚀 Auto-merge: ${{ github.event.head_commit.message }}" title: "🚀 Auto-PR: ${{ github.ref_name }} → main" body: |