Skip to content

Commit

Permalink
Infrastructure: Use W3CGRUNTBOT_TOKEN in place of GH_TOKEN for author…
Browse files Browse the repository at this point in the history
…ing 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 <[email protected]>
  • Loading branch information
daniel-montalvo and howard-e authored Sep 26, 2024
1 parent af8f4c1 commit 0fcefb6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/wai-trigger-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/wai-trigger-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wai-trigger-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0fcefb6

Please sign in to comment.