mirror of
https://github.com/complexcaresolutions/frontend.blogwoman.de.git
synced 2026-03-17 15:04:01 +00:00
fix(ci): use env var for git credential rewrite
Pass GH_PAT via env var instead of secrets expression in shell command for reliable git insteadOf config. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c618776f76
commit
a13badf066
1 changed files with 8 additions and 2 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
|
@ -11,11 +11,17 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.GH_PAT }}
|
||||
persist-credentials: true
|
||||
|
||||
- name: Configure git for private dependencies
|
||||
env:
|
||||
GH_PAT: ${{ secrets.GH_PAT }}
|
||||
run: |
|
||||
git config --global url."https://x-access-token:${{ secrets.GH_PAT }}@github.com/".insteadOf "git@github.com:"
|
||||
git config --global url."https://x-access-token:${{ secrets.GH_PAT }}@github.com/".insteadOf "github:"
|
||||
git config --global url."https://x-access-token:${GH_PAT}@github.com/".insteadOf "git@github.com:"
|
||||
git config --global url."https://x-access-token:${GH_PAT}@github.com/".insteadOf "ssh://git@github.com/"
|
||||
git config --global --get-regexp 'url\..*\.insteadof' || true
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue