From 550b796ef06131854cf01d5679233630a1f69e54 Mon Sep 17 00:00:00 2001 From: gtwang01 <110636181+gtwang01@users.noreply.github.com> Date: Thu, 8 Aug 2024 07:25:10 +0000 Subject: [PATCH] try using secrets.github_token --- .github/workflows/build.yml | 8 ++++---- .github/workflows/retry_build.yml | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d297444418..0b91fe7897 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -267,12 +267,12 @@ jobs: - name: Start rerun workflow env: GH_REPO: ${{ github.repository }} - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ secrets.github_token }} GH_DEBUG: api run: | gh workflow run retry_build.yml \ --ref ${{ github.ref_name }} \ -F run_id=${{ github.run_id }} - - name: Setup tmate session # delete this after - if: failure() - uses: mxschmitt/action-tmate@v3 + # - name: Setup tmate session # delete this after + # if: failure() + # uses: mxschmitt/action-tmate@v3 diff --git a/.github/workflows/retry_build.yml b/.github/workflows/retry_build.yml index 13ce77e28b..6c0480fcc5 100644 --- a/.github/workflows/retry_build.yml +++ b/.github/workflows/retry_build.yml @@ -6,6 +6,7 @@ on: required: true jobs: rerun-on-failure: + permissions: write-all runs-on: ubuntu-latest steps: - name: rerun ${{ inputs.run_id }}