From 10d52398c87530fa5c5627fa0ceefd7f97ff36d7 Mon Sep 17 00:00:00 2001 From: Jay Jie Date: Wed, 3 Jan 2024 18:07:14 -0800 Subject: [PATCH] chore: fix git config in test-e2e --- .github/workflows/test.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 29482c95..08daff64 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -53,7 +53,7 @@ jobs: GOARCH: ${{ matrix.arch }} - name: Configure private token run: | - git config --global url."https://${PAT}@github.com/".insteadOf "https://github.com/" + git config --global url."https://${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/" - name: Compile if: steps.cache-binaries.outputs.cache-hit != 'true' && env.GIT_DIFF run: | @@ -73,7 +73,7 @@ jobs: check-latest: true cache: true cache-dependency-path: go.sum - - run: git config --global url.https://${PAT}@github.com/.insteadOf https://github.com/ + - run: git config --global url.https://${GITHUB_TOKEN}@github.com/.insteadOf https://github.com/ - uses: technote-space/get-diff-action@v6.1.2 id: git_diff with: @@ -105,6 +105,7 @@ jobs: with: go-version: "1.21" - uses: actions/checkout@v4 + - run: git config --global url.https://${GITHUB_TOKEN}@github.com/.insteadOf https://github.com/ - uses: technote-space/get-diff-action@v6.0.1 with: PATTERNS: |