chore: maybe these tokens workflows

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-01-18 15:05:31 +01:00
parent 192a8bc84a
commit f44a185ab7
+1 -3
View File
@@ -23,6 +23,7 @@ jobs:
application_id: ${{ secrets.BACKSTAGE_WORKFLOW_MEMBER_READ_APP_ID }}
application_private_key: ${{ secrets.BACKSTAGE_WORKFLOW_MEMBER_READ_PRIVATE_KEY }}
organization: backstage
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
@@ -57,7 +58,6 @@ jobs:
- uses: actions/github-script@v5
id: get-all-changed-files
with:
github-token: ${{ github.token }}
script: |
const { data: allFiles } = await github.rest.pulls.listFiles({
owner: context.repo.owner,
@@ -70,7 +70,6 @@ jobs:
- uses: actions/github-script@v5
id: get-all-current-reviews
with:
github-token: ${{ github.token }}
script: |
const { data: allReviews } = await github.rest.pulls.listReviews({
owner: context.repo.owner,
@@ -83,7 +82,6 @@ jobs:
- uses: actions/github-script@v5
id: fix-labels
with:
github-token: ${{ github.token }}
script: |
// if it's the author, always add awaiting-review label
const isAuthor = context.payload.pull_request.user.login === context.actor