fix(ci): replace actions/checkout with manual git clone
Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-consent (push) Failing after 6s
CI / test-python-voice (push) Successful in 35s
CI / test-bqas (push) Successful in 30s

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 <noreply@anthropic.com>
This commit is contained in:
Benjamin Boenisch
2026-02-15 16:58:28 +01:00
parent 022c00cd17
commit c736a596c0

View File

@@ -24,7 +24,10 @@ jobs:
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
container: golangci/golangci-lint:v1.55-alpine container: golangci/golangci-lint:v1.55-alpine
steps: 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 consent-service - name: Lint consent-service
run: | run: |
if [ -d "consent-service" ]; then if [ -d "consent-service" ]; then
@@ -36,7 +39,10 @@ jobs:
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
container: python:3.12-slim container: python:3.12-slim
steps: 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 - name: Lint Python services
run: | run: |
pip install --quiet ruff pip install --quiet ruff
@@ -52,7 +58,10 @@ jobs:
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
container: node:20-alpine container: node:20-alpine
steps: 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 admin-core - name: Lint admin-core
run: | run: |
if [ -d "admin-core" ]; then if [ -d "admin-core" ]; then
@@ -71,11 +80,13 @@ jobs:
env: env:
CGO_ENABLED: "0" CGO_ENABLED: "0"
steps: 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 consent-service - name: Test consent-service
run: | run: |
apk add --no-cache jq bash if [ ! -d "consent-service" ]; then
if [ \! -d "consent-service" ]; then
echo "WARNUNG: consent-service nicht gefunden" echo "WARNUNG: consent-service nicht gefunden"
exit 0 exit 0
fi fi
@@ -90,10 +101,13 @@ jobs:
env: env:
CI: "true" CI: "true"
steps: 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 voice-service - name: Test voice-service
run: | run: |
if [ \! -d "voice-service" ]; then if [ ! -d "voice-service" ]; then
echo "WARNUNG: voice-service nicht gefunden" echo "WARNUNG: voice-service nicht gefunden"
exit 0 exit 0
fi fi
@@ -109,10 +123,13 @@ jobs:
env: env:
CI: "true" CI: "true"
steps: 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 BQAS - name: Test BQAS
run: | run: |
if [ \! -d "voice-service/tests/bqas" ]; then if [ ! -d "voice-service/tests/bqas" ]; then
echo "WARNUNG: BQAS Tests nicht gefunden" echo "WARNUNG: BQAS Tests nicht gefunden"
exit 0 exit 0
fi fi