From 7a35463462170035f109d7e1772b6db536f65329 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Mon, 10 Jun 2024 23:19:40 +1000 Subject: [PATCH] Use `secrets.CI_RELEASE_TEST_GITHUB_TOKEN` for just-setup Signed-off-by: Jiahao XU --- .github/workflows/ci.yml | 8 ++++++-- .github/workflows/release-packages.yml | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a47bf904..416c5120 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,7 +56,7 @@ jobs: env: # just-setup use binstall to install sccache, # which works better when we provide it with GITHUB_TOKEN. - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.CI_RELEASE_TEST_GITHUB_TOKEN }} with: tools: cargo-nextest @@ -100,7 +100,7 @@ jobs: env: # just-setup use binstall to install sccache, # which works better when we provide it with GITHUB_TOKEN. - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.CI_RELEASE_TEST_GITHUB_TOKEN }} - run: just avoid-dev-deps - run: just check @@ -121,6 +121,10 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ./.github/actions/just-setup + env: + # 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 }} - run: just toolchain rustfmt,clippy - run: just avoid-dev-deps diff --git a/.github/workflows/release-packages.yml b/.github/workflows/release-packages.yml index 4bcc7e31..5054d5ab 100644 --- a/.github/workflows/release-packages.yml +++ b/.github/workflows/release-packages.yml @@ -79,7 +79,9 @@ jobs: with: tools: cargo-auditable,rsign2,rage 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 }} - run: just toolchain rust-src