Skip to content

Commit 802e52c

Browse files
fix(ci): Add CARGO_NET_GIT_FETCH_WITH_CLI for private repo auth
Cargo's built-in git library doesn't use git config credential helpers. Force Cargo to use the system git CLI which respects the URL insteadOf config.
1 parent 47a6296 commit 802e52c

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
preflight:
1414
name: "🚧 Release Gates - MANDATORY VALIDATION"
1515
runs-on: ubuntu-latest
16+
env:
17+
CARGO_NET_GIT_FETCH_WITH_CLI: true
1618
outputs:
1719
should_publish: ${{ steps.gates.outputs.should_publish }}
1820
steps:
@@ -240,6 +242,8 @@ jobs:
240242
artifact-name: shimmy-macos-arm64
241243

242244
runs-on: ${{ matrix.os }}
245+
env:
246+
CARGO_NET_GIT_FETCH_WITH_CLI: true
243247
steps:
244248
- uses: actions/checkout@v4
245249

.github/workflows/vision-cross-platform-test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
build-linux-x86_64:
3434
if: github.event_name != 'workflow_dispatch' || contains(github.event.inputs.test_platforms || 'linux-x86_64', 'linux-x86_64')
3535
runs-on: ubuntu-latest
36+
env:
37+
CARGO_NET_GIT_FETCH_WITH_CLI: true
3638
steps:
3739
- uses: actions/checkout@v4
3840

@@ -79,6 +81,8 @@ jobs:
7981
build-linux-arm64:
8082
if: github.event_name != 'workflow_dispatch' || contains(github.event.inputs.test_platforms || 'linux-arm64', 'linux-arm64')
8183
runs-on: ubuntu-latest
84+
env:
85+
CARGO_NET_GIT_FETCH_WITH_CLI: true
8286
steps:
8387
- uses: actions/checkout@v4
8488

@@ -114,6 +118,8 @@ jobs:
114118
build-windows-x86_64:
115119
if: github.event_name != 'workflow_dispatch' || contains(github.event.inputs.test_platforms || 'windows-x86_64', 'windows-x86_64')
116120
runs-on: windows-latest
121+
env:
122+
CARGO_NET_GIT_FETCH_WITH_CLI: true
117123
steps:
118124
- uses: actions/checkout@v4
119125

@@ -154,6 +160,8 @@ jobs:
154160
build-macos-arm64:
155161
if: ${{ !inputs.skip_macos && (github.event_name != 'workflow_dispatch' || contains(github.event.inputs.test_platforms || '', 'macos-arm64')) }}
156162
runs-on: macos-latest
163+
env:
164+
CARGO_NET_GIT_FETCH_WITH_CLI: true
157165
steps:
158166
- uses: actions/checkout@v4
159167

0 commit comments

Comments
 (0)