From 75d29ac769074867da9d4d368109b2fee23c0fcf Mon Sep 17 00:00:00 2001 From: b3nw Date: Tue, 28 Apr 2026 01:31:53 +0000 Subject: [PATCH] fix(ci): use github.token for cross-repo clone Previous attempt failed with 403 Forbidden because CR_PAT doesn't have scope for cross-repo access in Gitea actions. Use the built-in github.token instead, which the runner provides for all repos it can access. --- .gitea/workflows/build.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index e1973d9..4130a00 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -18,10 +18,9 @@ jobs: - name: Clone schwab-scraper run: | mkdir -p vendor - # Use URL-embedded token for cross-repo access (CR_PAT has registry - # scope; actions/checkout@v3's Basic auth header fails with 403). + # Use the built-in runner token which has cross-repo access. git clone --depth=1 --branch main \ - "https://${{ gitea.actor }}:${{ secrets.CR_PAT }}@gitea.ext.ben.io/b3nw/schwab-scraper.git" \ + "https://oauth2:${{ github.token }}@gitea.ext.ben.io/b3nw/schwab-scraper.git" \ vendor/schwab-scraper - name: Login to Gitea Container Registry