-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add PR write permissions to label job (#2450)
- Loading branch information
1 parent
2dd466c
commit a13a50a
Showing
7 changed files
with
28 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,8 @@ jobs: | |
if: {% raw %}${{ github.event.action != 'labeled' || github.event.label.name == 'actions:force-run' }}{% endraw %} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: 'read' | ||
contents: 'write' | ||
pull-requests: 'write' | ||
id-token: 'write' | ||
steps: | ||
- uses: 'google-github-actions/[email protected]' | ||
|
@@ -48,8 +49,8 @@ jobs: | |
script: | | ||
await github.rest.issues.removeLabel({ | ||
name: 'actions:force-run', | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
owner: 'GoogleCloudPlatform' | ||
repo: 'nodejs-docs-samples', | ||
issue_number: context.payload.pull_request.number | ||
}); | ||
- if: {% raw %}${{ github.event_name == 'schedule'}}{% endraw %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,8 @@ jobs: | |
if: ${{ github.event.action != 'labeled' || github.event.label.name == 'actions:force-run' }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: 'read' | ||
contents: 'write' | ||
pull-requests: 'write' | ||
id-token: 'write' | ||
steps: | ||
- uses: 'google-github-actions/[email protected]' | ||
|
@@ -48,8 +49,8 @@ jobs: | |
script: | | ||
await github.rest.issues.removeLabel({ | ||
name: 'actions:force-run', | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
owner: 'GoogleCloudPlatform' | ||
repo: 'nodejs-docs-samples', | ||
issue_number: context.payload.pull_request.number | ||
}); | ||
- if: ${{ github.event_name == 'schedule'}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,8 @@ jobs: | |
if: ${{ github.event.action != 'labeled' || github.event.label.name == 'actions:force-run' }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: 'read' | ||
contents: 'write' | ||
pull-requests: 'write' | ||
id-token: 'write' | ||
steps: | ||
- uses: 'google-github-actions/[email protected]' | ||
|
@@ -48,8 +49,8 @@ jobs: | |
script: | | ||
await github.rest.issues.removeLabel({ | ||
name: 'actions:force-run', | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
owner: 'GoogleCloudPlatform' | ||
repo: 'nodejs-docs-samples', | ||
issue_number: context.payload.pull_request.number | ||
}); | ||
- if: ${{ github.event_name == 'schedule'}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,8 @@ jobs: | |
if: ${{ github.event.action != 'labeled' || github.event.label.name == 'actions:force-run' }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: 'read' | ||
contents: 'write' | ||
pull-requests: 'write' | ||
id-token: 'write' | ||
steps: | ||
- uses: 'google-github-actions/[email protected]' | ||
|
@@ -48,8 +49,8 @@ jobs: | |
script: | | ||
await github.rest.issues.removeLabel({ | ||
name: 'actions:force-run', | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
owner: 'GoogleCloudPlatform' | ||
repo: 'nodejs-docs-samples', | ||
issue_number: context.payload.pull_request.number | ||
}); | ||
- if: ${{ github.event_name == 'schedule'}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,8 @@ jobs: | |
if: ${{ github.event.action != 'labeled' || github.event.label.name == 'actions:force-run' }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: 'read' | ||
contents: 'write' | ||
pull-requests: 'write' | ||
id-token: 'write' | ||
steps: | ||
- uses: 'google-github-actions/[email protected]' | ||
|
@@ -48,8 +49,8 @@ jobs: | |
script: | | ||
await github.rest.issues.removeLabel({ | ||
name: 'actions:force-run', | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
owner: 'GoogleCloudPlatform' | ||
repo: 'nodejs-docs-samples', | ||
issue_number: context.payload.pull_request.number | ||
}); | ||
- if: ${{ github.event_name == 'schedule'}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,8 @@ jobs: | |
if: ${{ github.event.action != 'labeled' || github.event.label.name == 'actions:force-run' }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: 'read' | ||
contents: 'write' | ||
pull-requests: 'write' | ||
id-token: 'write' | ||
steps: | ||
- uses: 'google-github-actions/[email protected]' | ||
|
@@ -48,8 +49,8 @@ jobs: | |
script: | | ||
await github.rest.issues.removeLabel({ | ||
name: 'actions:force-run', | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
owner: 'GoogleCloudPlatform' | ||
repo: 'nodejs-docs-samples', | ||
issue_number: context.payload.pull_request.number | ||
}); | ||
- if: ${{ github.event_name == 'schedule'}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,8 @@ jobs: | |
if: ${{ github.event.action != 'labeled' || github.event.label.name == 'actions:force-run' }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: 'read' | ||
contents: 'write' | ||
pull-requests: 'write' | ||
id-token: 'write' | ||
steps: | ||
- uses: 'google-github-actions/[email protected]' | ||
|
@@ -48,8 +49,8 @@ jobs: | |
script: | | ||
await github.rest.issues.removeLabel({ | ||
name: 'actions:force-run', | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
owner: 'GoogleCloudPlatform' | ||
repo: 'nodejs-docs-samples', | ||
issue_number: context.payload.pull_request.number | ||
}); | ||
- if: ${{ github.event_name == 'schedule'}} | ||
|