From 3601de3600dafa6fae8aa1714c729ad40c86cbfd Mon Sep 17 00:00:00 2001 From: Stefano Bertelli Date: Mon, 30 Mar 2026 20:56:42 -0500 Subject: [PATCH] fix: replace actions/checkout with git clone to avoid SSL cert errors The Forgejo runner's container images lack CA certificates, causing actions/checkout@v4 to fail on SSL verification. Use direct git clone (same approach as the test job) for release and docker jobs. --- .forgejo/workflows/release.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 2f84dd4..6e9d693 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -54,12 +54,11 @@ jobs: new_version: ${{ steps.version.outputs.new_version }} skip: ${{ steps.version.outputs.skip }} steps: - - name: Install dependencies - run: apt-get update && apt-get install -y --no-install-recommends bash git python3 - - - uses: actions/checkout@v4 - with: - fetch-depth: 0 + - name: Install dependencies and checkout + run: | + apt-get update && apt-get install -y --no-install-recommends bash git python3 + git clone ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git . + git checkout ${GITHUB_SHA} - name: Determine version bump id: version @@ -182,7 +181,10 @@ jobs: image: catthehacker/ubuntu:act-latest options: --privileged steps: - - uses: actions/checkout@v4 + - name: Checkout repository + run: | + git clone --depth=1 ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git . + git checkout ${GITHUB_SHA} - name: Build and push image shell: bash