Skip to content

Commit e76ae6c

Browse files
committed
refactor: Use usernames for E2E trigger permissions
We were using pull_request.author_association field to check permission of the author of a pull request but as GitHub has deprecated the field and announced to remove the filed in recent blog, this commit continue using old workaround for E2E trigger permissions. Signed-off-by: Zaki Shaikh <[email protected]>
1 parent bae62a5 commit e76ae6c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/e2e.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ jobs:
3131
if: >
3232
github.event_name == 'schedule' ||
3333
github.event_name == 'workflow_dispatch' ||
34-
(github.event_name == 'pull_request_target' &&
35-
contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR", "CONTRIBUTOR"]'), github.event.pull_request.author_association))
34+
(github.event_name == 'pull_request_target' && contains(fromJSON('["zakisk", "infernus01", "savitaashture", "chmouel", "vdemeester", "enarha", "aThorp96", "waveywaves", "dependabot[bot]"]'), github.event.pull_request.user.login))
3635
concurrency:
3736
group: ${{ github.workflow }}-${{ matrix.provider }}-${{ github.event.pull_request.number || github.ref_name }}
3837
cancel-in-progress: true

0 commit comments

Comments
 (0)