From 5e92757a238df205d8b1dfa7c99312b2dd2452fd Mon Sep 17 00:00:00 2001 From: nickfrosty <75431177+nickfrosty@users.noreply.github.com> Date: Mon, 25 Nov 2024 18:41:39 -0500 Subject: [PATCH] fix: token name --- .github/workflows/label-actions.yml | 5 +---- .github/workflows/prettier-label-action.yml | 6 +++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/label-actions.yml b/.github/workflows/label-actions.yml index 1584ad4c8..692cbb2e1 100644 --- a/.github/workflows/label-actions.yml +++ b/.github/workflows/label-actions.yml @@ -1,8 +1,5 @@ name: "Label Actions" -env: - GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} - on: issues: types: [labeled, unlabeled] @@ -15,5 +12,5 @@ jobs: steps: - uses: dessant/label-actions@v3 with: - github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} config-path: .github/label-actions.yml diff --git a/.github/workflows/prettier-label-action.yml b/.github/workflows/prettier-label-action.yml index 11167df94..55ef23e29 100644 --- a/.github/workflows/prettier-label-action.yml +++ b/.github/workflows/prettier-label-action.yml @@ -1,7 +1,7 @@ name: Prettier Formatting on Label env: - GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} on: pull_request: @@ -18,7 +18,7 @@ jobs: with: ref: ${{ github.head_ref }} # Use a token that allows pushing to the PR branch - token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} # Setup Node.js (required for Prettier) - uses: actions/setup-node@v4 @@ -54,7 +54,7 @@ jobs: if: always() uses: actions/github-script@v7 with: - github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} script: | github.rest.issues.removeLabel({ owner: context.repo.owner,