fix: replace actions/checkout with git clone to avoid SSL cert errors
Some checks failed
CI / test (push) Successful in 1m46s
CI / release (push) Failing after 25s
CI / docker (push) Has been skipped

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.
This commit is contained in:
Stefano Bertelli 2026-03-30 20:56:42 -05:00
parent 1b48702295
commit 3601de3600

View file

@ -54,12 +54,11 @@ jobs:
new_version: ${{ steps.version.outputs.new_version }} new_version: ${{ steps.version.outputs.new_version }}
skip: ${{ steps.version.outputs.skip }} skip: ${{ steps.version.outputs.skip }}
steps: steps:
- name: Install dependencies - name: Install dependencies and checkout
run: apt-get update && apt-get install -y --no-install-recommends bash git python3 run: |
apt-get update && apt-get install -y --no-install-recommends bash git python3
- uses: actions/checkout@v4 git clone ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git .
with: git checkout ${GITHUB_SHA}
fetch-depth: 0
- name: Determine version bump - name: Determine version bump
id: version id: version
@ -182,7 +181,10 @@ jobs:
image: catthehacker/ubuntu:act-latest image: catthehacker/ubuntu:act-latest
options: --privileged options: --privileged
steps: 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 - name: Build and push image
shell: bash shell: bash