2
0

fix(ci): configure git authentication for private repository redirects

Add git configuration step before checkout to handle authentication for private repository redirects. This ensures workflow jobs can access private dependencies hosted on git.marketally.com using the GitHub token.
This commit is contained in:
2026-01-19 11:27:13 -05:00
parent 48c3ac9dac
commit 87b244f46c
2 changed files with 16 additions and 0 deletions

View File

@@ -10,6 +10,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Configure git for redirects
run: |
git config --global http.https://git.marketally.com/.extraheader "AUTHORIZATION: basic $(echo -n 'x-access-token:${{ github.token }}' | base64 -w0)"
- name: Checkout
uses: actions/checkout@v4
@@ -32,6 +36,10 @@ jobs:
needs: build
if: github.ref == 'refs/heads/main'
steps:
- name: Configure git for redirects
run: |
git config --global http.https://git.marketally.com/.extraheader "AUTHORIZATION: basic $(echo -n 'x-access-token:${{ github.token }}' | base64 -w0)"
- name: Checkout
uses: actions/checkout@v4

View File

@@ -9,6 +9,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Configure git for redirects
run: |
git config --global http.https://git.marketally.com/.extraheader "AUTHORIZATION: basic $(echo -n 'x-access-token:${{ github.token }}' | base64 -w0)"
- name: Checkout
uses: actions/checkout@v4
@@ -54,6 +58,10 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- name: Configure git for redirects
run: |
git config --global http.https://git.marketally.com/.extraheader "AUTHORIZATION: basic $(echo -n 'x-access-token:${{ github.token }}' | base64 -w0)"
- name: Checkout
uses: actions/checkout@v4