Skip to content

Commit

Permalink
devops: remove some use of REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed May 8, 2024
1 parent 81e907f commit 0b3a472
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cherry_pick_into_release_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:

permissions:
contents: write
pull-requests: write

jobs:
roll:
Expand Down Expand Up @@ -62,7 +63,6 @@ jobs:
- name: Create Pull Request
uses: actions/github-script@v6
with:
github-token: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}
script: |
const readableCommitHashesList = '${{ github.event.inputs.commit_hashes }}'.split(',').map(hash => `- ${hash}`).join('\n');
const response = await github.rest.pulls.create({
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr_check_client_side_changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
issueBody = issueCreateData.body;
}
const newBody = issueBody.trimEnd() + `
- [ ] https://github.com/${context.repo.owner}/${context.repo.repo}/commit/${context.sha} (${commitHeader})`;
- [ ] https://github.com/${context.repo.owner}/${context.repo.repo}/commit/${context.sha} (${commitHeader})`;
const data = await github.rest.issues.update({
owner: context.repo.owner,
repo: repo,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/roll_browser_into_playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ env:

permissions:
contents: write
pull-requests: write

jobs:
roll:
Expand Down Expand Up @@ -40,7 +41,6 @@ jobs:
- name: Create Pull Request
uses: actions/github-script@v6
with:
github-token: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}
script: |
const response = await github.rest.pulls.create({
owner: 'microsoft',
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/roll_driver_nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
if: github.repository == 'microsoft/playwright'
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -37,7 +38,6 @@ jobs:
if: ${{ steps.prepare-branch.outputs.HAS_CHANGES == '1' }}
uses: actions/github-script@v6
with:
github-token: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}
script: |
await github.rest.pulls.create({
owner: 'microsoft',
Expand Down

0 comments on commit 0b3a472

Please sign in to comment.