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
Some checks failed
Build and Push Docker Image / build (push) Failing after 5s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user