From 0fcefb660c8646bbeea38370c0b0ec507e65fc04 Mon Sep 17 00:00:00 2001 From: Daniel Montalvo <49305434+daniel-montalvo@users.noreply.github.com> Date: Thu, 26 Sep 2024 20:28:17 +0200 Subject: [PATCH] Infrastructure: Use W3CGRUNTBOT_TOKEN in place of GH_TOKEN for authoring PRs and deploying to the WAI website (#3119) Use W3CGRUNTBOT_TOKEN for authoring PRs and deploying to the WAI website --------- Co-authored-by: Howard Edwards --- .github/workflows/wai-trigger-cleanup.yml | 4 ++-- .github/workflows/wai-trigger-deploy.yml | 2 +- .github/workflows/wai-trigger-pr.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/wai-trigger-cleanup.yml b/.github/workflows/wai-trigger-cleanup.yml index 3439952315..01e28bc738 100644 --- a/.github/workflows/wai-trigger-cleanup.yml +++ b/.github/workflows/wai-trigger-cleanup.yml @@ -27,7 +27,7 @@ jobs: run: | node scripts/wai-trigger-cleanup.js env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} + GH_TOKEN: ${{ secrets.W3CGRUNTBOT_TOKEN }} OWNER: ${{ github.repository_owner }} # reference github.event.ref for branch deletion APG_BRANCH: ${{ github.event.ref }} @@ -50,7 +50,7 @@ jobs: run: | node scripts/wai-trigger-cleanup.js env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} + GH_TOKEN: ${{ secrets.W3CGRUNTBOT_TOKEN }} OWNER: ${{ github.repository_owner }} # reference github.head_ref for pull request APG_BRANCH: ${{ github.head_ref }} diff --git a/.github/workflows/wai-trigger-deploy.yml b/.github/workflows/wai-trigger-deploy.yml index 2ac561b269..d3aadc0328 100644 --- a/.github/workflows/wai-trigger-deploy.yml +++ b/.github/workflows/wai-trigger-deploy.yml @@ -19,7 +19,7 @@ jobs: - name: Trigger wai-aria-practices update uses: actions/github-script@v7 with: - github-token: ${{ secrets.GH_TOKEN }} + github-token: ${{ secrets.W3CGRUNTBOT_TOKEN }} script: | await github.rest.actions.createWorkflowDispatch({ owner: context.repo.owner, diff --git a/.github/workflows/wai-trigger-pr.yml b/.github/workflows/wai-trigger-pr.yml index a58116eb85..29129f6dee 100644 --- a/.github/workflows/wai-trigger-pr.yml +++ b/.github/workflows/wai-trigger-pr.yml @@ -32,7 +32,7 @@ jobs: APG_PR_NUMBER: ${{ github.event.pull_request.number }} FORK_PATH: ${{ github.event.pull_request.head.repo.fork && github.event.pull_request.head.repo.full_name }} with: - github-token: ${{ secrets.GH_TOKEN }} + github-token: ${{ secrets.W3CGRUNTBOT_TOKEN }} script: | await github.rest.actions.createWorkflowDispatch({ owner: context.repo.owner,