aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2025-02-28 15:39:58 +0100
committerFerdinand Thiessen <opensource@fthiessen.de>2025-02-28 15:39:58 +0100
commitb416e859012b569572177d66799af061ec01c980 (patch)
treeebfa675571e94f1af7dc1ed85c5f236d0a1667a9
parent951a35cc3841e33e11266ae11dd1eac70c3ab3b3 (diff)
downloadnextcloud-server-ci/request-reviews-perms.tar.gz
nextcloud-server-ci/request-reviews-perms.zip
ci: give request-review action permissions to fetch teamsci/request-reviews-perms
The token must have organization permissions to read teams, the github token only has scoped permissions on the repo but not on the org, so we need to use a PAT. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
-rw-r--r--.github/workflows/request-reviews.yml7
1 files changed, 2 insertions, 5 deletions
diff --git a/.github/workflows/request-reviews.yml b/.github/workflows/request-reviews.yml
index 5834351f7d3..87729cfae68 100644
--- a/.github/workflows/request-reviews.yml
+++ b/.github/workflows/request-reviews.yml
@@ -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
if: needs.changes.outputs.backend == 'true'
env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GH_TOKEN: ${{ secrets.COMMAND_BOT_PAT }}
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 \