Skip to content

Commit 9a0f8f4

Browse files
PlaneshifterShabiShett07
authored andcommitted
build: consolidate tokens
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent d8758ff commit 9a0f8f4

File tree

8 files changed

+19
-19
lines changed

8 files changed

+19
-19
lines changed

.github/workflows/autoclose.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: 'Close pull request'
5353
run: gh pr close "$NUMBER" --comment "$BODY"
5454
env:
55-
GH_TOKEN: ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
55+
GH_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
5656
GH_REPO: ${{ github.repository }}
5757
NUMBER: ${{ github.event.pull_request.number }}
5858
BODY: |
@@ -88,7 +88,7 @@ jobs:
8888
- name: 'Close pull request'
8989
run: gh pr close "$NUMBER" --comment "$BODY"
9090
env:
91-
GH_TOKEN: ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
91+
GH_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
9292
GH_REPO: ${{ github.repository }}
9393
NUMBER: ${{ github.event.pull_request.number }}
9494
BODY: |
@@ -124,7 +124,7 @@ jobs:
124124
- name: 'Close pull request'
125125
run: gh pr close "$NUMBER" --comment "$BODY"
126126
env:
127-
GH_TOKEN: ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
127+
GH_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
128128
GH_REPO: ${{ github.repository }}
129129
NUMBER: ${{ github.event.pull_request.number }}
130130
BODY: |
@@ -164,7 +164,7 @@ jobs:
164164
- name: 'Close pull request'
165165
run: gh pr close "$NUMBER" --comment "$BODY"
166166
env:
167-
GH_TOKEN: ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
167+
GH_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
168168
GH_REPO: ${{ github.repository }}
169169
NUMBER: ${{ github.event.pull_request.number }}
170170
BODY: |
@@ -176,7 +176,7 @@ jobs:
176176
- name: 'Lock conversation'
177177
run: gh pr lock "$NUMBER" --reason spam
178178
env:
179-
GH_TOKEN: ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
179+
GH_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
180180
GH_REPO: ${{ github.repository }}
181181
NUMBER: ${{ github.event.pull_request.number }}
182182

@@ -204,7 +204,7 @@ jobs:
204204
- name: 'Close pull request'
205205
run: gh pr close "$NUMBER" --comment "$BODY"
206206
env:
207-
GH_TOKEN: ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
207+
GH_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
208208
GH_REPO: ${{ github.repository }}
209209
NUMBER: ${{ github.event.pull_request.number }}
210210
BODY: |

.github/workflows/check_contributing_guidelines_acceptance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
# Check contributing guidelines acceptance:
8888
- name: 'Check contributing guidelines acceptance'
8989
env:
90-
GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
90+
GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
9191
PR_NUMBER: ${{ github.event.pull_request.number || inputs.pull_request_number }}
9292
run: |
9393
. "$GITHUB_WORKSPACE/.github/workflows/scripts/check_contributing_guidelines_acceptance" $PR_NUMBER

.github/workflows/good_first_issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: 'Add comment'
5353
run: gh issue comment "$NUMBER" --body "$BODY"
5454
env:
55-
GH_TOKEN: ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
55+
GH_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
5656
GH_REPO: ${{ github.repository }}
5757
NUMBER: ${{ github.event.issue.number }}
5858
BODY: |

.github/workflows/labeler.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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.STDLIB_BOT_FGPAT_PR_WRITE }}
66+
repo-token: ${{ secrets.STDLIB_BOT_PAT_REPO_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.STDLIB_BOT_FGPAT_PR_WRITE }}
74+
github-token: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
7575
script: |
7676
const { data: pr } = await github.rest.pulls.get({
7777
'owner': context.repo.owner,
@@ -96,7 +96,7 @@ jobs:
9696
# Pin action to full length commit SHA
9797
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
9898
with:
99-
github-token: ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
99+
github-token: ${{ secrets.STDLIB_BOT_PAT_REPO_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.STDLIB_BOT_FGPAT_PR_WRITE }}
114+
github-token: ${{ secrets.STDLIB_BOT_PAT_REPO_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.STDLIB_BOT_FGPAT_PR_WRITE }}
129+
github-token: ${{ secrets.STDLIB_BOT_PAT_REPO_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.STDLIB_BOT_FGPAT_PR_WRITE }}
147+
github-token: ${{ secrets.STDLIB_BOT_PAT_REPO_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.STDLIB_BOT_FGPAT_PR_WRITE }}
169+
github-token: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
170170
script: |
171171
const prAuthor = context.payload.pull_request.user.login;
172172
const { owner, repo } = context.repo;

.github/workflows/standalone_keepalive.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,6 @@ jobs:
104104
# Update standalone packages:
105105
- name: 'Update standalone packages'
106106
env:
107-
GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
107+
GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
108108
run: |
109109
node lib/node_modules/@stdlib/_tools/scripts/publish_packages.js --keep-alive

.github/workflows/standalone_publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ jobs:
119119
# Publish standalone packages:
120120
- name: 'Publish packages'
121121
env:
122-
GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
122+
GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
123123
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
124124
run: |
125125
# Save NPM_TOKEN to user's .npmrc:

.github/workflows/standalone_publish_custom.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
# Publish standalone packages:
128128
- name: 'Publish packages'
129129
env:
130-
GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
130+
GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
131131
DEBUG: ${{ env.ACTIONS_STEP_DEBUG && 'scripts:publish-packages' || '' }}
132132
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
133133
run: |

.github/workflows/update_pr_copyright_years.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
repository: ${{ steps.pr-details.outputs.repository }}
9191

9292
# Token for accessing the repository:
93-
token: ${{ secrets.REPO_GITHUB_TOKEN }}
93+
token: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
9494

9595
# File path to checkout to:
9696
path: './'

0 commit comments

Comments
 (0)