diff --git a/.github/workflows/gh-action.yml b/.github/workflows/gh-action.yml index 20990277..bd51ff5a 100644 --- a/.github/workflows/gh-action.yml +++ b/.github/workflows/gh-action.yml @@ -26,7 +26,7 @@ jobs: - name: Install cargo-binstall uses: ./ # uses action.yml from root of the repo env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.CI_RELEASE_TEST_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} - name: Verify successful installation - display cargo-binstall's help run: cargo binstall --help @@ -34,7 +34,9 @@ jobs: - name: Verify successful installation - install example binary using cargo-binstall run: cargo binstall -y ripgrep env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # just-setup use binstall to install sccache, + # which works better when we provide it with GITHUB_TOKEN. + GITHUB_TOKEN: ${{ secrets.CI_RELEASE_TEST_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} - name: Verify successful installation - display help of installed binary run: rg --help