diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f87a1fdd..e5156277 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,10 +28,9 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - # Force git to use HTTPS instead of SSH for GitHub repositories - git config --global url."https://github.com/".insteadOf "ssh://git@github.com/" - git config --global url."https://github.com/".insteadOf "git@github.com:" - # Configure git to use GITHUB_TOKEN for authentication + # Force git to use HTTPS with token instead of SSH for GitHub repositories + git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "ssh://git@github.com/" + git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "git@github.com:" git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/" - name: Restore Yarn Cache @@ -46,6 +45,9 @@ jobs: ${{ runner.os }}-yarn- - name: Install dependencies + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GIT_TERMINAL_PROMPT: 0 run: yarn install --immutable - name: Build project diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8fe008d8..43551035 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -28,10 +28,9 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - # Force git to use HTTPS instead of SSH for GitHub repositories - git config --global url."https://github.com/".insteadOf "ssh://git@github.com/" - git config --global url."https://github.com/".insteadOf "git@github.com:" - # Configure git to use GITHUB_TOKEN for authentication + # Force git to use HTTPS with token instead of SSH for GitHub repositories + git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "ssh://git@github.com/" + git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "git@github.com:" git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/" - name: Restore Yarn Cache @@ -46,6 +45,9 @@ jobs: ${{ runner.os }}-yarn- - name: Install packages + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GIT_TERMINAL_PROMPT: 0 run: yarn install --immutable - name: Check linting diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml index 42c64d8e..c5625ff3 100644 --- a/.github/workflows/pr-comment.yml +++ b/.github/workflows/pr-comment.yml @@ -18,7 +18,7 @@ jobs: - uses: mshick/add-pr-comment@v2 with: - repo-token: ${{ secrets.PERSONAL_TOKEN }} + repo-token: ${{ secrets.GITHUB_TOKEN }} message-id: pr-test message: | Thanks for opening this pull request and contributing to the project! diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 328dca54..e19e434f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,10 +29,9 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - # Force git to use HTTPS instead of SSH for GitHub repositories - git config --global url."https://github.com/".insteadOf "ssh://git@github.com/" - git config --global url."https://github.com/".insteadOf "git@github.com:" - # Configure git to use GITHUB_TOKEN for authentication + # Force git to use HTTPS with token instead of SSH for GitHub repositories + git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "ssh://git@github.com/" + git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "git@github.com:" git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/" - name: Restore Yarn Cache @@ -47,6 +46,9 @@ jobs: ${{ runner.os }}-yarn- - name: Install dependencies + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GIT_TERMINAL_PROMPT: 0 run: yarn install --immutable - name: Run tests