Skip to content

Commit 02e2e2d

Browse files
authored
Use DOCS_BOT_PAT_BASE (#55464)
1 parent 9e6ef2e commit 02e2e2d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+100
-100
lines changed

.github/workflows/check-broken-links-github-github.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
env:
2020
# need to use a token from a user with access to github/github for this step
21-
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
21+
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_BASE }}
2222
REPORT_AUTHOR: docs-bot
2323
REPORT_LABEL: github github broken link report
2424
REPORT_REPOSITORY: github/docs-content
@@ -33,7 +33,7 @@ jobs:
3333

3434
- uses: ./.github/actions/get-docs-early-access
3535
with:
36-
token: ${{ secrets.DOCS_BOT_PAT_READPUBLICKEY }}
36+
token: ${{ secrets.DOCS_BOT_PAT_BASE }}
3737

3838
- name: Build server
3939
run: npm run build

.github/workflows/check-for-spammy-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- uses: actions/github-script@e69ef5462fd455e02edcaf4dd7708eda96b9eda0
2121
with:
22-
github-token: ${{ secrets.DOCS_BOT_PAT_WORKFLOW_READORG }}
22+
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
2323
script: |
2424
2525
const issue = context.payload.issue

.github/workflows/close-bad-repo-sync-prs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Close pull request if unwanted
2525
uses: actions/github-script@e69ef5462fd455e02edcaf4dd7708eda96b9eda0
2626
with:
27-
github-token: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
27+
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
2828
script: |
2929
const { owner, repo } = context.repo
3030
const prCreator = context.actor

.github/workflows/confirm-internal-staff-work-in-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
env:
2929
TEAM_CONTENT_REPO: ${{ secrets.TEAM_CONTENT_REPO }}
3030
with:
31-
github-token: ${{ secrets.DOCS_BOT_PAT_WORKFLOW_READORG }}
31+
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
3232
script: |
3333
// Only perform this action with GitHub employees
3434
try {

.github/workflows/copy-api-issue-to-internal.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: actions/github-script@e69ef5462fd455e02edcaf4dd7708eda96b9eda0
2323
id: triggered-by-member
2424
with:
25-
github-token: ${{secrets.DOCS_BOT_PAT_WORKFLOW_READORG}}
25+
github-token: ${{secrets.DOCS_BOT_PAT_BASE}}
2626
result-encoding: string
2727
script: |
2828
const triggerer_login = context.payload.sender.login
@@ -48,26 +48,26 @@ jobs:
4848
new_issue_url="$(gh issue create --title "$ISSUE_TITLE" --body "$ISSUE_BODY" --repo github/docs-content)"
4949
echo 'NEW_ISSUE='$new_issue_url >> $GITHUB_ENV
5050
env:
51-
GITHUB_TOKEN: ${{secrets.DOCS_BOT_PAT_WORKFLOW_READORG}}
51+
GITHUB_TOKEN: ${{secrets.DOCS_BOT_PAT_BASE}}
5252
ISSUE_TITLE: ${{ github.event.issue.title }}
5353
ISSUE_BODY: ${{ github.event.issue.body }}
5454

5555
- name: Comment on the old issue
5656
run: gh issue comment $OLD_ISSUE --body "Thank you for opening this issue! Updates to this documentation must be made internally. I have copied your issue to an internal issue, so I will close this issue."
5757
env:
58-
GITHUB_TOKEN: ${{secrets.DOCS_BOT_PAT_WORKFLOW_READORG}}
58+
GITHUB_TOKEN: ${{secrets.DOCS_BOT_PAT_BASE}}
5959
OLD_ISSUE: ${{ github.event.issue.html_url }}
6060

6161
- name: Close the old issue
6262
run: gh issue close $OLD_ISSUE
6363
env:
64-
GITHUB_TOKEN: ${{secrets.DOCS_BOT_PAT_WORKFLOW_READORG}}
64+
GITHUB_TOKEN: ${{secrets.DOCS_BOT_PAT_BASE}}
6565
OLD_ISSUE: ${{ github.event.issue.html_url }}
6666

6767
- name: Comment on the new issue
6868
run: gh issue comment $NEW_ISSUE --body "This issue was originally opened in the open source repo as $OLD_ISSUE"
6969
env:
70-
GITHUB_TOKEN: ${{secrets.DOCS_BOT_PAT_WORKFLOW_READORG}}
70+
GITHUB_TOKEN: ${{secrets.DOCS_BOT_PAT_BASE}}
7171
NEW_ISSUE: ${{ env.NEW_ISSUE }}
7272
OLD_ISSUE: ${{ github.event.issue.html_url }}
7373

.github/workflows/count-translation-corruptions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ jobs:
2828
with:
2929
# Using a PAT is necessary so that the new commit will trigger the
3030
# CI in the PR. (Events from GITHUB_TOKEN don't trigger new workflows.)
31-
token: ${{ secrets.DOCS_BOT_PAT_READPUBLICKEY }}
31+
token: ${{ secrets.DOCS_BOT_PAT_BASE }}
3232

3333
# It's important because translations are often a bit behind.
3434
# So if a translation is a bit behind, it might still be referencing
3535
# an asset even though none of the English content does.
3636
- name: Clone all translations
3737
uses: ./.github/actions/clone-translations
3838
with:
39-
token: ${{ secrets.DOCS_BOT_PAT_READPUBLICKEY }}
39+
token: ${{ secrets.DOCS_BOT_PAT_BASE }}
4040

4141
- uses: ./.github/actions/node-npm-setup
4242

.github/workflows/delete-orphan-translation-files.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
6767
with:
6868
repository: ${{ matrix.language_repo }}
69-
token: ${{ secrets.DOCS_BOT_PAT_READPUBLICKEY }}
69+
token: ${{ secrets.DOCS_BOT_PAT_BASE }}
7070
path: ${{ matrix.language_dir }}
7171

7272
- uses: ./.github/actions/node-npm-setup
@@ -89,7 +89,7 @@ jobs:
8989
working-directory: ${{ matrix.language_dir }}
9090
env:
9191
# Needed for gh
92-
GH_TOKEN: ${{ secrets.DOCS_BOT_PAT_READPUBLICKEY }}
92+
GH_TOKEN: ${{ secrets.DOCS_BOT_PAT_BASE }}
9393
run: |
9494
# If nothing to commit, exit now. It's fine. No orphans.
9595
changes=$(git diff --name-only | wc -l)

.github/workflows/docs-review-collect.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
run: |
3636
npm run fr-add-docs-reviewers-requests
3737
env:
38-
TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
38+
TOKEN: ${{ secrets.DOCS_BOT_PAT_BASE }}
3939
PROJECT_NUMBER: 2936
4040
ORGANIZATION: 'github'
4141
REPO: 'audit-log-allowlists'

.github/workflows/enterprise-dates.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Run src/ghes-releases/scripts/update-enterprise-dates.js
3232
run: npm run update-enterprise-dates
3333
env:
34-
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
34+
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_BASE }}
3535

3636
- name: Create pull request
3737
id: create-pull-request
@@ -41,7 +41,7 @@ jobs:
4141
HUSKY: '0'
4242
with:
4343
# need to use a token with repo and workflow scopes for this step
44-
token: ${{ secrets.DOCS_BOT_PAT_READPUBLICKEY }}
44+
token: ${{ secrets.DOCS_BOT_PAT_BASE }}
4545
commit-message: '🤖 ran src/ghes-releases/scripts/update-enterprise-dates.js'
4646
title: 🤖 src/ghes-releases/lib/enterprise-dates.json update
4747
body:
@@ -54,7 +54,7 @@ jobs:
5454
- name: Enable GitHub auto-merge
5555
if: ${{ steps.create-pull-request.outputs.pull-request-number }}
5656
env:
57-
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_READPUBLICKEY }}
57+
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_BASE }}
5858
AUTOMERGE_PR_NUMBER: ${{ steps.create-pull-request.outputs.pull-request-number }}
5959
run: npm run enable-automerge
6060

.github/workflows/enterprise-release-issue.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ jobs:
2626
- name: Create an enterprise release issue
2727
run: npm run create-enterprise-issue -- release
2828
env:
29-
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
29+
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_BASE }}
3030

3131
- name: Create an enterprise deprecation issue
3232
run: npm run create-enterprise-issue -- deprecation
3333
env:
34-
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
34+
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_BASE }}
3535

3636
- uses: ./.github/actions/slack-alert
3737
if: ${{ failure() && github.event_name != 'workflow_dispatch' }}

0 commit comments

Comments
 (0)