Skip to content

Commit 3c60078

Browse files
jt55401claude
andcommitted
fix(ci): use token-only URL format for fine-grained PAT auth
Fine-grained PATs don't support x-access-token username. Use TOKEN@github.com format instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 321f4e8 commit 3c60078

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ jobs:
2020
node-version: "22"
2121

2222
- name: Configure private dep access
23+
env:
24+
TOKEN: ${{ secrets.HTMLTRUST_PKG_TOKEN }}
2325
run: |
24-
git config --global url."https://x-access-token:${{ secrets.HTMLTRUST_PKG_TOKEN }}@github.com/".insteadOf "https://github.com/"
25-
git config --global url."https://x-access-token:${{ secrets.HTMLTRUST_PKG_TOKEN }}@github.com/".insteadOf "ssh://git@github.com/"
26+
git config --global url."https://${TOKEN}@github.com/".insteadOf "https://github.com/"
27+
git config --global url."https://${TOKEN}@github.com/".insteadOf "ssh://git@github.com/"
2628
2729
- name: Install dependencies
2830
run: npm ci

0 commit comments

Comments
 (0)