mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix: use the a PAT instead of the GITHUB_TOKEN (#45376)
This commit is contained in:
@@ -123,6 +123,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
PR_NUMBER: ${{ github.event.workflow_run.pull_requests[0].number }}
|
PR_NUMBER: ${{ github.event.workflow_run.pull_requests[0].number }}
|
||||||
with:
|
with:
|
||||||
|
github-token: ${{ secrets.GH_BOT_ACCESS_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
await github.rest.issues.addLabels({
|
await github.rest.issues.addLabels({
|
||||||
issue_number: process.env.PR_NUMBER,
|
issue_number: process.env.PR_NUMBER,
|
||||||
@@ -137,6 +138,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
PR_NUMBER: ${{ github.event.workflow_run.pull_requests[0].number }}
|
PR_NUMBER: ${{ github.event.workflow_run.pull_requests[0].number }}
|
||||||
with:
|
with:
|
||||||
|
github-token: ${{ secrets.GH_BOT_ACCESS_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
await github.rest.issues.removeLabel({
|
await github.rest.issues.removeLabel({
|
||||||
issue_number: process.env.PR_NUMBER,
|
issue_number: process.env.PR_NUMBER,
|
||||||
@@ -153,6 +155,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
PR_NUMBER: ${{ github.event.workflow_run.pull_requests[0].number }}
|
PR_NUMBER: ${{ github.event.workflow_run.pull_requests[0].number }}
|
||||||
with:
|
with:
|
||||||
|
github-token: ${{ secrets.GH_BOT_ACCESS_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
await github.rest.pulls.requestReviewers({
|
await github.rest.pulls.requestReviewers({
|
||||||
pull_number: process.env.PR_NUMBER,
|
pull_number: process.env.PR_NUMBER,
|
||||||
@@ -168,6 +171,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
PR_NUMBER: ${{ github.event.workflow_run.pull_requests[0].number }}
|
PR_NUMBER: ${{ github.event.workflow_run.pull_requests[0].number }}
|
||||||
with:
|
with:
|
||||||
|
github-token: ${{ secrets.GH_BOT_ACCESS_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
await github.rest.pulls.removeRequestedReviewers({
|
await github.rest.pulls.removeRequestedReviewers({
|
||||||
pull_number: process.env.PR_NUMBER,
|
pull_number: process.env.PR_NUMBER,
|
||||||
|
|||||||
Reference in New Issue
Block a user