diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2e753021..902b8970 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -50,7 +50,7 @@ jobs: env: GOOS: ${{ matrix.targetos }} GOARCH: ${{ matrix.arch }} - - run: git config --global url.https://${USERNAME}:${GITHUB_TOKEN}@github.com/.insteadOf https://github.com/ + - run: git config --global url.https://oauth2:${GITHUB_TOKEN}@github.com/.insteadOf https://github.com/ - name: Compile if: steps.cache-binaries.outputs.cache-hit != 'true' && env.GIT_DIFF run: | @@ -71,7 +71,7 @@ jobs: check-latest: true cache: true cache-dependency-path: go.sum - - run: git config --global url.https://${USERNAME}:${GITHUB_TOKEN}@github.com/.insteadOf https://github.com/ + - run: git config --global url.https://oauth2:${GITHUB_TOKEN}@github.com/.insteadOf https://github.com/ - uses: technote-space/get-diff-action@v6.1.2 id: git_diff with: @@ -104,7 +104,7 @@ jobs: with: go-version: "1.21" - uses: actions/checkout@v4 - - run: git config --global url.https://${USERNAME}:${GITHUB_TOKEN}@github.com/.insteadOf https://github.com/ + - run: git config --global url.https://oauth2:${GITHUB_TOKEN}@github.com/.insteadOf https://github.com/ - uses: technote-space/get-diff-action@v6.0.1 with: PATTERNS: |