@@ -63,15 +63,15 @@ jobs:
6363 uses : actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
6464 with :
6565 configuration-path : .github/labeler.yml
66- repo-token : ${{ secrets.CHATBOT_GITHUB_TOKEN }}
66+ repo-token : ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
6767
6868 # Add "First-time Contributor" label if PR is from a first-time contributor:
6969 - name : ' Add "First-time Contributor" label if PR is from a first-time contributor'
7070 if : ${{ github.event.action == 'opened' || github.event.action == 'reopened' }}
7171 # Pin action to full-length commit SHA
7272 uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
7373 with :
74- github-token : ${{ secrets.CHATBOT_GITHUB_TOKEN }}
74+ github-token : ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
7575 script : |
7676 const { data: pr } = await github.rest.pulls.get({
7777 'owner': context.repo.owner,
9696 # Pin action to full length commit SHA
9797 uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
9898 with :
99- github-token : ${{ secrets.CHATBOT_GITHUB_TOKEN }}
99+ github-token : ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
100100 script : |
101101 await github.rest.issues.addLabels({
102102 'owner': context.repo.owner,
@@ -111,7 +111,7 @@ jobs:
111111 # Pin action to full length commit SHA
112112 uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
113113 with :
114- github-token : ${{ secrets.CHATBOT_GITHUB_TOKEN }}
114+ github-token : ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
115115 script : |
116116 await github.rest.issues.addLabels({
117117 'owner': context.repo.owner,
@@ -126,7 +126,7 @@ jobs:
126126 # Pin action to full length commit SHA
127127 uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
128128 with :
129- github-token : ${{ secrets.CHATBOT_GITHUB_TOKEN }}
129+ github-token : ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
130130 script : |
131131 try {
132132 await github.rest.issues.removeLabel({
@@ -144,7 +144,7 @@ jobs:
144144 if : ${{ github.event.action == 'labeled' && github.event.label.name == 'Ready To Merge' }}
145145 uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
146146 with :
147- github-token : ${{ secrets.CHATBOT_GITHUB_TOKEN }}
147+ github-token : ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
148148 script : |
149149 const labelsToRemove = [ 'Needs Review', 'Needs Changes' ];
150150 for ( const label of labelsToRemove ) {
@@ -166,7 +166,7 @@ jobs:
166166 # Pin action to full length commit SHA
167167 uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
168168 with :
169- github-token : ${{ secrets.CHATBOT_GITHUB_TOKEN }}
169+ github-token : ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
170170 script : |
171171 const prAuthor = context.payload.pull_request.user.login;
172172 const { owner, repo } = context.repo;
0 commit comments