From ccff37f91bf857e2029e6682c6e8eb239ba33a25 Mon Sep 17 00:00:00 2001 From: Benjamin Boenisch Date: Sun, 15 Feb 2026 16:58:30 +0100 Subject: [PATCH] fix(ci): replace actions/checkout with manual git clone The act_runner cannot create /home/act_runner cache dir inside container images. Replace actions/checkout@v4 with manual git clone using GITHUB_SERVER_URL and GITHUB_REPOSITORY env vars. Co-Authored-By: Claude Sonnet 4.5 --- .gitea/workflows/ci.yaml | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 95232c1..9ca3fd5 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -24,7 +24,10 @@ jobs: if: github.event_name == 'pull_request' container: golangci/golangci-lint:v1.55-alpine steps: - - uses: actions/checkout@v4 + - name: Checkout + run: | + apk add --no-cache git + git clone --depth 1 --branch ${GITHUB_REF_NAME} ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git . - name: Lint school-service run: | if [ -d "school-service" ]; then @@ -36,7 +39,10 @@ jobs: if: github.event_name == 'pull_request' container: python:3.12-slim steps: - - uses: actions/checkout@v4 + - name: Checkout + run: | + apt-get update -qq && apt-get install -y -qq git > /dev/null 2>&1 + git clone --depth 1 --branch ${GITHUB_REF_NAME} ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git . - name: Lint Python services run: | pip install --quiet ruff @@ -56,7 +62,10 @@ jobs: if: github.event_name == 'pull_request' container: node:20-alpine steps: - - uses: actions/checkout@v4 + - name: Checkout + run: | + apk add --no-cache git + git clone --depth 1 --branch ${GITHUB_REF_NAME} ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git . - name: Lint Node.js services run: | for svc in website admin-lehrer studio-v2; do @@ -79,10 +88,12 @@ jobs: env: CGO_ENABLED: "0" steps: - - uses: actions/checkout@v4 + - name: Checkout + run: | + apk add --no-cache git + git clone --depth 1 --branch ${GITHUB_REF_NAME} ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git . - name: Test school-service run: | - apk add --no-cache jq bash if [ ! -d "school-service" ]; then echo "WARNUNG: school-service nicht gefunden" exit 0 @@ -98,7 +109,10 @@ jobs: env: CI: "true" steps: - - uses: actions/checkout@v4 + - name: Checkout + run: | + apt-get update -qq && apt-get install -y -qq git > /dev/null 2>&1 + git clone --depth 1 --branch ${GITHUB_REF_NAME} ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git . - name: Test klausur-service run: | if [ ! -d "klausur-service/backend" ]; then @@ -117,7 +131,10 @@ jobs: env: CI: "true" steps: - - uses: actions/checkout@v4 + - name: Checkout + run: | + apt-get update -qq && apt-get install -y -qq git > /dev/null 2>&1 + git clone --depth 1 --branch ${GITHUB_REF_NAME} ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git . - name: Test agent-core run: | if [ ! -d "agent-core" ]; then @@ -136,7 +153,10 @@ jobs: runs-on: docker container: node:20-alpine steps: - - uses: actions/checkout@v4 + - name: Checkout + run: | + apk add --no-cache git + git clone --depth 1 --branch ${GITHUB_REF_NAME} ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git . - name: Test website run: | if [ ! -d "website" ]; then