Cloning private Forgejo repositories without nodejs 0 ▲ glorifiedgluer 1 hour ago · Tech · hide · 0 comments 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 }}" . No comments yet. Log in to reply on the Fediverse. Comments will appear here.