From 60e7747e255a6a6831351b9a8ab2f9eb2526af6e Mon Sep 17 00:00:00 2001 From: b3nw Date: Tue, 28 Apr 2026 01:37:14 +0000 Subject: [PATCH] fix(ci): revert github.token, use CR_PAT via env for cross-repo clone --- .gitea/workflows/build.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 4130a00..14772df 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -16,11 +16,12 @@ jobs: uses: actions/checkout@v3 - name: Clone schwab-scraper + env: + CLONE_TOKEN: ${{ secrets.CR_PAT }} run: | mkdir -p vendor - # Use the built-in runner token which has cross-repo access. git clone --depth=1 --branch main \ - "https://oauth2:${{ github.token }}@gitea.ext.ben.io/b3nw/schwab-scraper.git" \ + "https://x-access-token:${CLONE_TOKEN}@gitea.ext.ben.io/b3nw/schwab-scraper.git" \ vendor/schwab-scraper - name: Login to Gitea Container Registry