fix(ci): use github.token for cross-repo clone
Some checks failed
Build and Push Docker Image / build (push) Failing after 4s
Some checks failed
Build and Push Docker Image / build (push) Failing after 4s
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.
This commit is contained in:
@@ -18,10 +18,9 @@ jobs:
|
|||||||
- name: Clone schwab-scraper
|
- name: Clone schwab-scraper
|
||||||
run: |
|
run: |
|
||||||
mkdir -p vendor
|
mkdir -p vendor
|
||||||
# Use URL-embedded token for cross-repo access (CR_PAT has registry
|
# Use the built-in runner token which has cross-repo access.
|
||||||
# scope; actions/checkout@v3's Basic auth header fails with 403).
|
|
||||||
git clone --depth=1 --branch main \
|
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
|
vendor/schwab-scraper
|
||||||
|
|
||||||
- name: Login to Gitea Container Registry
|
- name: Login to Gitea Container Registry
|
||||||
|
|||||||
Reference in New Issue
Block a user