Skip to content

Commit

Permalink
[release-0.19] Prevent external contributors from triggering workflow…
Browse files Browse the repository at this point in the history
…s via PR comments

Signed-off-by: Fatih Türken <[email protected]>
  • Loading branch information
turkenf committed Feb 27, 2025
1 parent 9640d54 commit f5f78b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/uptest-trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
echo "github.event.comment.author_association: ${{ github.event.comment.author_association }}"
get-example-list:
if: ${{ (github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'CONTRIBUTOR' ) &&
if: ${{ (github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'MEMBER' ) &&
github.event.issue.pull_request &&
contains(github.event.comment.body, '/test-examples' ) }}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
-f context="Uptest-${{ steps.get-example-list-name.outputs.example-hash }}"
uptest:
if: ${{ (github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'CONTRIBUTOR' ) &&
if: ${{ (github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'MEMBER' ) &&
github.event.issue.pull_request &&
contains(github.event.comment.body, '/test-examples' ) }}
runs-on: ubuntu-latest
Expand Down

0 comments on commit f5f78b9

Please sign in to comment.