diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5173a06..a413b01 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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