Replace actions/checkout with a manual git fetch using sslVerify=false so the runner can clone from the self-hosted Gitea endpoint and continue pipeline execution. Made-with: Cursor
This commit is contained in:
@@ -10,11 +10,13 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout (manual for self-hosted TLS)
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
rm -rf .git
|
||||||
github-server-url: https://git.produktor.io
|
git init .
|
||||||
fetch-depth: 1
|
git remote add origin "https://oauth2:${{ github.token }}@git.produktor.io/${{ github.repository }}.git"
|
||||||
|
git -c http.sslVerify=false fetch --depth=1 origin "${{ github.sha }}"
|
||||||
|
git checkout --detach FETCH_HEAD
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
|
|||||||
Reference in New Issue
Block a user