Skip to content

Commit a6dc377

Browse files
authored
Fix missing token error in GitHub Actions (#6409)
Fixes issues where forked repositories had failing pipelines.
1 parent c187446 commit a6dc377

File tree

3 files changed

+9
-17
lines changed

3 files changed

+9
-17
lines changed

.github/workflows/assign-tech-writers.yml

-15
This file was deleted.

.github/workflows/label-doc-changes.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,9 @@ jobs:
3333
if: ${{steps.check-doc-changes.outputs.DOC_CHANGED == 'true'}}
3434
with:
3535
labels: doc-changes
36-
github_token: ${{ secrets.OSS_BOT_GITHUB_TOKEN }}
36+
github_token: ${{ github.token }}
37+
- name: assign techwriters to PR
38+
if: ${{steps.check-doc-changes.outputs.DOC_CHANGED == 'true'}}
39+
uses: kentaro-m/[email protected]
40+
with:
41+
configuration-path: ".github/auto_assign.yml"

.github/workflows/update-api-reports.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ jobs:
77
name: Update API reports
88
runs-on: ubuntu-latest
99

10+
permissions:
11+
contents: write
1012
steps:
1113
- name: Checkout Repo
1214
uses: actions/checkout@master
1315
with:
1416
# checkout HEAD commit instead of merge commit
1517
ref: ${{ github.event.pull_request.head.sha }}
16-
token: ${{ secrets.OSS_BOT_GITHUB_TOKEN }}
18+
token: ${{ github.token }}
1719
- name: Set up Node (14)
1820
uses: actions/setup-node@v2
1921
with:

0 commit comments

Comments
 (0)