Sometimes cloning a repository doesn't require a complex dependency tree. Plain git is enough!
It's possible to leverate the forgejo context for the information needed to clone. The gotcha is that forgejo.server_url contains the protocol (ie. https://). You need to strip that before passing to Git:
- name: Checkout
run: |
SERVER="${{ forgejo.server_url }}"
git clone --depth=1 --branch "${{ forgejo.ref_name }}" \
"https://x-access-token:${{ secrets.FORGEJO_TOKEN }}@${SERVER#https://}/${{ forgejo.repository }}" .