Skip to content

Commit 31224e1

Browse files
committed
build: do not persist token and use new fine-grained PAT for PR
--- 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 --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent eddf827 commit 31224e1

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

.github/workflows/update_cli_permissions.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ jobs:
6464

6565
# Specify whether to download Git-LFS files:
6666
lfs: false
67+
68+
# Avoid storing GitHub token in local Git configuration:
69+
persist-credentials: false
6770
timeout-minutes: 10
6871

6972
# Make CLI scripts executable:
@@ -102,7 +105,7 @@ jobs:
102105
signoff: true
103106
body: |
104107
This PR changes the permissions of project `cli` scripts to be executable.
105-
token: ${{ secrets.PULL_REQUEST_TOKEN }}
108+
token: ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
106109
labels: |
107110
automated-pr
108111
team-reviewers: |

.github/workflows/update_contributors.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ jobs:
6767

6868
# Specify whether to download Git-LFS files:
6969
lfs: false
70+
71+
# Avoid storing GitHub token in local Git configuration:
72+
persist-credentials: false
7073
timeout-minutes: 10
7174

7275
# Update the contributors list:
@@ -115,7 +118,7 @@ jobs:
115118
commit-message: 'docs: update list of contributors'
116119
committer: 'stdlib-bot <82920195+stdlib-bot@users.noreply.github.com>'
117120
signoff: true
118-
token: ${{ secrets.PULL_REQUEST_TOKEN }}
121+
token: ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
119122
labels: |
120123
documentation
121124
automated-pr

.github/workflows/update_error_databases.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ jobs:
6464

6565
# Specify whether to download Git-LFS files:
6666
lfs: false
67+
68+
# Avoid storing GitHub token in local Git configuration:
69+
persist-credentials: false
6770
timeout-minutes: 10
6871

6972
# Install Node.js:
@@ -163,7 +166,7 @@ jobs:
163166
commit-message: 'feat: update error databases'
164167
committer: 'stdlib-bot <82920195+stdlib-bot@users.noreply.github.com>'
165168
signoff: true
166-
token: ${{ secrets.PULL_REQUEST_TOKEN }}
169+
token: ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
167170
labels: |
168171
documentation
169172
automated-pr

.github/workflows/update_package_meta_data.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ jobs:
6565

6666
# Specify whether to download Git-LFS files:
6767
lfs: false
68+
69+
# Avoid storing GitHub token in local Git configuration:
70+
persist-credentials: false
6871
timeout-minutes: 10
6972

7073
# Install Node.js:
@@ -116,7 +119,7 @@ jobs:
116119
commit-message: 'chore: update package meta data'
117120
committer: 'stdlib-bot <82920195+stdlib-bot@users.noreply.github.com>'
118121
signoff: true
119-
token: ${{ secrets.PULL_REQUEST_TOKEN }}
122+
token: ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
120123
labels: |
121124
automated-pr
122125
team-reviewers: |

.github/workflows/update_repl_docs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ jobs:
6464

6565
# Specify whether to download Git-LFS files:
6666
lfs: false
67+
68+
# Avoid storing GitHub token in local Git configuration:
69+
persist-credentials: false
6770
timeout-minutes: 10
6871

6972
# Install Node.js:
@@ -121,7 +124,7 @@ jobs:
121124
commit-message: 'docs: update REPL namespace documentation'
122125
committer: 'stdlib-bot <82920195+stdlib-bot@users.noreply.github.com>'
123126
signoff: true
124-
token: ${{ secrets.PULL_REQUEST_TOKEN }}
127+
token: ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
125128
labels: |
126129
documentation
127130
automated-pr

0 commit comments

Comments
 (0)