Skip to content

Commit 2213562

Browse files
committed
fix: use standard token
1 parent a9c48fe commit 2213562

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/pull-request-management.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- name: Apply labels based on branch prefix and PR title
5656
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
5757
with:
58-
github-token: ${{ secrets.GH_PAT_TOKEN }}
58+
github-token: ${{ secrets.GITHUB_TOKEN }}
5959
script: |
6060
const branch = context.payload.pull_request.head.ref;
6161
const prTitle = context.payload.pull_request.title;
@@ -179,7 +179,7 @@ jobs:
179179
- name: Assign default assignee if none assigned
180180
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
181181
with:
182-
github-token: ${{ secrets.GH_PAT_TOKEN }}
182+
github-token: ${{ secrets.GITHUB_TOKEN }}
183183
script: |
184184
const pr = context.payload.pull_request;
185185
const assignees = pr.assignees || [];
@@ -226,7 +226,7 @@ jobs:
226226
- name: Welcome new contributor
227227
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
228228
with:
229-
github-token: ${{ secrets.GH_PAT_TOKEN }}
229+
github-token: ${{ secrets.GITHUB_TOKEN }}
230230
script: |
231231
const author = context.payload.pull_request.user.login;
232232
const repoName = context.repo.repo;
@@ -270,13 +270,14 @@ jobs:
270270
permissions:
271271
contents: read
272272
pull-requests: write
273+
273274
if: github.event.action == 'opened'
274275

275276
steps:
276277
- name: Add size label based on changes
277278
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
278279
with:
279-
github-token: ${{ secrets.GH_PAT_TOKEN }}
280+
github-token: ${{ secrets.GITHUB_TOKEN }}
280281
script: |
281282
const pr = context.payload.pull_request;
282283
const additions = pr.additions || 0;

0 commit comments

Comments
 (0)