Skip to content

Commit 31ef45e

Browse files
committed
ci: maintainer_check: Use zephyrbot token
This commit updates the maintainer check workflow to use the zephyrbot "PR assigner" token with `org:read` permission because the default workflow token is not able to retrieve organisation-level user membership information. Note that the workflow trigger condition is changed from `pull_request` to `pull_request_target` because non-workflow secrets may not be accessed from `pull_request` trigger for security reasons. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
1 parent 63bf487 commit 31ef45e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/maintainer_check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Maintainer file check
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
branches:
66
- main
77
paths:
@@ -37,7 +37,7 @@ jobs:
3737
3838
- name: Check maintainer file changes
3939
env:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
GITHUB_TOKEN: ${{ secrets.ZB_PR_ASSIGNER_GITHUB_TOKEN }}
4141
run: |
4242
python ./scripts/ci/check_maintainer_changes.py \
4343
--repo zephyrproject-rtos/zephyr mainline_MAINTAINERS.yml MAINTAINERS.yml

0 commit comments

Comments
 (0)