Skip to content

Commit 76c6da3

Browse files
committed
fix(ci): unset extraheader before setup_repos.sh to allow PAT auth
actions/checkout sets an extraheader using GITHUB_TOKEN which only has access to this repo. This overrides the GIT_CONFIG_COUNT-based auth in setup_repos.sh, causing 'repository not found' for external private repos.
1 parent 3335881 commit 76c6da3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/docker-build-push.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ jobs:
4545
if: matrix.needs_vcs_import
4646
run: |
4747
pip install vcstool
48+
# Remove extraheader set by actions/checkout (uses GITHUB_TOKEN which
49+
# only has access to this repo, not external private repos)
50+
git config --unset-all http.https://github.com/.extraheader || true
4851
./scripts/setup_repos.sh --token "${{ secrets.DRS_PAT }}"
4952
5053
- name: Log in to Container Registry

0 commit comments

Comments
 (0)