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:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
roll:
|
roll:
|
||||||
|
|
@ -62,7 +63,6 @@ jobs:
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}
|
|
||||||
script: |
|
script: |
|
||||||
const readableCommitHashesList = '${{ github.event.inputs.commit_hashes }}'.split(',').map(hash => `- ${hash}`).join('\n');
|
const readableCommitHashesList = '${{ github.event.inputs.commit_hashes }}'.split(',').map(hash => `- ${hash}`).join('\n');
|
||||||
const response = await github.rest.pulls.create({
|
const response = await github.rest.pulls.create({
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ jobs:
|
||||||
issueBody = issueCreateData.body;
|
issueBody = issueCreateData.body;
|
||||||
}
|
}
|
||||||
const newBody = issueBody.trimEnd() + `
|
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({
|
const data = await github.rest.issues.update({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: repo,
|
repo: repo,
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ env:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
roll:
|
roll:
|
||||||
|
|
@ -40,7 +41,6 @@ jobs:
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}
|
|
||||||
script: |
|
script: |
|
||||||
const response = await github.rest.pulls.create({
|
const response = await github.rest.pulls.create({
|
||||||
owner: 'microsoft',
|
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'
|
if: github.repository == 'microsoft/playwright'
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
|
|
@ -37,7 +38,6 @@ jobs:
|
||||||
if: ${{ steps.prepare-branch.outputs.HAS_CHANGES == '1' }}
|
if: ${{ steps.prepare-branch.outputs.HAS_CHANGES == '1' }}
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}
|
|
||||||
script: |
|
script: |
|
||||||
await github.rest.pulls.create({
|
await github.rest.pulls.create({
|
||||||
owner: 'microsoft',
|
owner: 'microsoft',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue