Work around self-hosted TLS in CI checkout step.
CI / test (push) Failing after 5s

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:
2026-03-01 11:46:15 +00:00
parent 4dc0a5738d
commit 08d47eb6dc
+7 -5
View File
@@ -10,11 +10,13 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
github-server-url: https://git.produktor.io
fetch-depth: 1
- name: Checkout (manual for self-hosted TLS)
run: |
rm -rf .git
git init .
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
uses: actions/setup-go@v5