Remove tokenized remote URL and fetch from the public repository endpoint to avoid self-hosted auth URL mismatches in the runner. Made-with: Cursor
This commit is contained in:
@@ -14,7 +14,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
rm -rf .git
|
rm -rf .git
|
||||||
git init .
|
git init .
|
||||||
git remote add origin "https://oauth2:${{ github.token }}@git.produktor.io/${{ github.repository }}"
|
git remote add origin "https://git.produktor.io/${{ github.repository }}.git"
|
||||||
git -c http.sslVerify=false fetch --depth=1 origin "${{ github.sha }}"
|
git -c http.sslVerify=false fetch --depth=1 origin "${{ github.sha }}"
|
||||||
git checkout --detach FETCH_HEAD
|
git checkout --detach FETCH_HEAD
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user