Skip to content

Commit 1497006

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 83ea3ac commit 1497006

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
@@ -27,9 +27,11 @@ jobs:
2727
node-version: "22"
2828

2929
- name: Configure private dep access
30+
env:
31+
TOKEN: ${{ secrets.HTMLTRUST_PKG_TOKEN }}
3032
run: |
31-
git config --global url."https://x-access-token:${{ secrets.HTMLTRUST_PKG_TOKEN }}@github.com/".insteadOf "https://github.com/"
32-
git config --global url."https://x-access-token:${{ secrets.HTMLTRUST_PKG_TOKEN }}@github.com/".insteadOf "ssh://git@github.com/"
33+
git config --global url."https://${TOKEN}@github.com/".insteadOf "https://github.com/"
34+
git config --global url."https://${TOKEN}@github.com/".insteadOf "ssh://git@github.com/"
3335
3436
- name: Install dependencies
3537
run: npm ci

0 commit comments

Comments
 (0)