-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
ci: give request-review action permissions to fetch teams #51140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -50,14 +50,11 @@ jobs: | |||||||||||||||||
| # Only if there are not already reviews requested | ||||||||||||||||||
| if: github.event.pull_request.requested_reviewers[1] == null | ||||||||||||||||||
|
|
||||||||||||||||||
| permissions: | ||||||||||||||||||
| pull-requests: write | ||||||||||||||||||
|
|
||||||||||||||||||
| steps: | ||||||||||||||||||
| - name: Assign backend engineers | ||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But then this does not make much sense as most PRs we need this come from new community people. |
||||||||||||||||||
| if: needs.changes.outputs.backend == 'true' | ||||||||||||||||||
| env: | ||||||||||||||||||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||||||
| GH_TOKEN: ${{ secrets.COMMAND_BOT_PAT }} | ||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. then we need to restrict it and can not run it for forks...
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
would be bad. But we either need a PAT or a GitHub App token.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What @nickvergessen means is this I think - name: Disabled on forks
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
run: |
echo 'Can not run this action on forks'
exit 1 |
||||||||||||||||||
| run: | | ||||||||||||||||||
| gh api \ | ||||||||||||||||||
| --method POST \ | ||||||||||||||||||
|
|
@@ -68,7 +65,7 @@ jobs: | |||||||||||||||||
| - name: Assign frontend engineers | ||||||||||||||||||
| if: needs.changes.outputs.frontend == 'true' | ||||||||||||||||||
| env: | ||||||||||||||||||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||||||
| GH_TOKEN: ${{ secrets.COMMAND_BOT_PAT }} | ||||||||||||||||||
| run: | | ||||||||||||||||||
| gh api \ | ||||||||||||||||||
| --method POST \ | ||||||||||||||||||
|
|
||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is no longer needed, no?
As we now use the PAT permissions.