devops: remove some use of REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN
This commit is contained in:
parent
81e907f4c1
commit
0b3a472fd2
|
|
@ -14,6 +14,7 @@ on:
|
|||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
roll:
|
||||
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ env:
|
|||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
roll:
|
||||
|
|
@ -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',
|
||||
|
|
|
|||
2
.github/workflows/roll_driver_nodejs.yml
vendored
2
.github/workflows/roll_driver_nodejs.yml
vendored
|
|
@ -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
|
||||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue