Add basic auth header
All checks were successful
Self Test / test (push) Successful in 5s

This commit is contained in:
Alessio 2025-05-31 20:54:01 -04:00
parent 6ee6b734a0
commit 964bcaee00

View File

@ -4,9 +4,11 @@ runs:
using: "composite" using: "composite"
steps: steps:
- run: | - run: |
mkdir -p /tmp/newdir && cd /tmp/newdir
git init git init
git remote add origin "$GITEA_SERVER_URL/$GITEA_REPOSITORY" git remote add origin "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY"
git fetch origin "$GITEA_REF" basicauth=$(echo -n "x-access-token:${{ secrets.GITHUB_TOKEN }}" | base64)
git checkout "$GITEA_REF_NAME" git config --local http.$GITHUB_SERVER_URL.extraheader "AUTHORIZATION: basic ${basicauth}"
git fetch origin "$GITHUB_REF"
git checkout "$GITHUB_REF_NAME"
shell: bash shell: bash