Skip to content

Commit e1de149

Browse files
authored
ci: handle PR author type OWNER (#15266)
1 parent e679a8a commit e1de149

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/test-runner-untrusted.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
# `ref` of the pull request, so downstream jobs know what to checkout.
2929
environment: 'external'
3030
name: Require Approval for External PRs
31-
if: ${{ github.event.pull_request.author_association != 'MEMBER' && github.event.pull_request.author_association != 'COLLABORATOR' }}
31+
if: ${{ github.event.pull_request.author_association != 'OWNER' && github.event.pull_request.author_association != 'MEMBER' && github.event.pull_request.author_association != 'COLLABORATOR' }}
3232
runs-on: ubuntu-latest
3333
outputs:
3434
checkout-sha: ${{ steps.save-pull-request.outputs.sha }}

.github/workflows/test-runner.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ jobs:
5454
needs: [debug]
5555
if: >-
5656
${{
57-
((github.event.pull_request.author_association == 'MEMBER' ||
57+
((github.event.pull_request.author_association == 'OWNER' ||
58+
github.event.pull_request.author_association == 'MEMBER' ||
5859
github.event.pull_request.author_association == 'COLLABORATOR') &&
5960
github.event_name == 'pull_request_target') ||
6061
github.event_name == 'push' ||

0 commit comments

Comments
 (0)