Skip to content

Commit 1848576

Browse files
authored
chore(ci): remove VITE_TASK_TOKEN from workflows (#809)
## Summary - Remove `VITE_TASK_TOKEN` git config steps from all CI workflows (ci, e2e-test, release, upgrade-deps) - vite-task is now public, so private repo access tokens are no longer needed ## Test plan - CI should pass without the token since vite-task is publicly accessible 🤖 Generated with [Claude Code](https://claude.com/claude-code)
1 parent 1242c08 commit 1848576

File tree

6 files changed

+38
-65
lines changed

6 files changed

+38
-65
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ jobs:
8484
- run: rustup target add x86_64-unknown-linux-musl
8585
if: ${{ matrix.os == 'ubuntu-latest' }}
8686

87-
- name: Configure Git for access to vite-task
88-
run: git config --global url."https://x-access-token:${{ secrets.VITE_TASK_TOKEN }}@github.com/".insteadOf "ssh://git@github.com/"
89-
9087
- run: cargo check --all-targets --all-features
9188
env:
9289
RUSTFLAGS: '-D warnings --cfg tokio_unstable' # also update .cargo/config.toml
@@ -104,9 +101,6 @@ jobs:
104101
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
105102
- uses: ./.github/actions/clone
106103

107-
- name: Configure Git for access to vite-task
108-
run: git config --global url."https://x-access-token:${{ secrets.VITE_TASK_TOKEN }}@github.com/".insteadOf "ssh://git@github.com/"
109-
110104
- uses: oxc-project/setup-rust@d286d43bc1f606abbd98096666ff8be68c8d5f57 # v1.0.0
111105
with:
112106
save-cache: ${{ github.ref_name == 'main' }}
@@ -138,9 +132,6 @@ jobs:
138132
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
139133
- uses: ./.github/actions/clone
140134

141-
- name: Configure Git for access to vite-task
142-
run: git config --global url."https://x-access-token:${{ secrets.VITE_TASK_TOKEN }}@github.com/".insteadOf "ssh://git@github.com/"
143-
144135
- uses: oxc-project/setup-rust@d286d43bc1f606abbd98096666ff8be68c8d5f57 # v1.0.0
145136
with:
146137
save-cache: ${{ github.ref_name == 'main' }}
@@ -190,9 +181,6 @@ jobs:
190181
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
191182
- uses: ./.github/actions/clone
192183

193-
- name: Configure Git for access to vite-task
194-
run: git config --global url."https://x-access-token:${{ secrets.VITE_TASK_TOKEN }}@github.com/".insteadOf "ssh://git@github.com/"
195-
196184
# Disable Windows Defender real-time scanning to speed up I/O-heavy builds (~30-50% faster)
197185
- name: Disable Windows Defender
198186
if: runner.os == 'Windows'
@@ -575,9 +563,6 @@ jobs:
575563
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
576564
- uses: ./.github/actions/clone
577565

578-
- name: Configure Git for access to vite-task
579-
run: git config --global url."https://x-access-token:${{ secrets.VITE_TASK_TOKEN }}@github.com/".insteadOf "ssh://git@github.com/"
580-
581566
- uses: oxc-project/setup-rust@d286d43bc1f606abbd98096666ff8be68c8d5f57 # v1.0.0
582567
with:
583568
save-cache: ${{ github.ref_name == 'main' }}

.github/workflows/e2e-test.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ jobs:
8080
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
8181
- uses: ./.github/actions/clone
8282

83-
- name: Configure Git for access to vite-task
84-
run: git config --global url."https://x-access-token:${{ secrets.VITE_TASK_TOKEN }}@github.com/".insteadOf "ssh://git@github.com/"
85-
8683
# Disable Windows Defender real-time scanning to speed up I/O-heavy builds (~30-50% faster)
8784
- name: Disable Windows Defender
8885
if: runner.os == 'Windows'

.github/workflows/release.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ jobs:
9595
fi
9696
echo "Version replacement verified successfully"
9797
98-
- name: Configure Git for access to vite-task
99-
run: git config --global url."https://x-access-token:${{ secrets.VITE_TASK_TOKEN }}@github.com/".insteadOf "ssh://git@github.com/"
100-
10198
- name: Build
10299
uses: ./.github/actions/build-upstream
103100
with:
@@ -165,9 +162,6 @@ jobs:
165162
- name: Install dependencies
166163
run: pnpm install
167164

168-
- name: Configure Git for access to vite-task
169-
run: git config --global url."https://x-access-token:${{ secrets.VITE_TASK_TOKEN }}@github.com/".insteadOf "ssh://git@github.com/"
170-
171165
- name: Download cli dist
172166
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
173167
with:

.github/workflows/upgrade-deps.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ jobs:
1919
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2020
- uses: ./.github/actions/clone
2121

22-
- name: Configure Git for access to vite-task
23-
run: git config --global url."https://x-access-token:${{ secrets.VITE_TASK_TOKEN }}@github.com/".insteadOf "ssh://git@github.com/"
24-
2522
- uses: oxc-project/setup-rust@d286d43bc1f606abbd98096666ff8be68c8d5f57 # v1.0.0
2623
with:
2724
save-cache: ${{ github.ref_name == 'main' }}

Cargo.lock

Lines changed: 31 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)