fix(ci): revert github.token, use CR_PAT via env for cross-repo clone
Some checks failed
Build and Push Docker Image / build (push) Failing after 5s

This commit is contained in:
2026-04-28 01:37:14 +00:00
parent 75d29ac769
commit 60e7747e25

View File

@@ -16,11 +16,12 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Clone schwab-scraper - name: Clone schwab-scraper
env:
CLONE_TOKEN: ${{ secrets.CR_PAT }}
run: | run: |
mkdir -p vendor mkdir -p vendor
# Use the built-in runner token which has cross-repo access.
git clone --depth=1 --branch main \ 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 vendor/schwab-scraper
- name: Login to Gitea Container Registry - name: Login to Gitea Container Registry