fix(ci): restrict issue comments to members or owners (#28633)

This commit is contained in:
Daniel Vaz Gaspar
2024-05-22 22:31:54 +01:00
committed by GitHub
parent ac53f7fea9
commit 1573c101a7

View File

@@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
if: >
(github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]') ||
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@supersetbot trigger-dependabot-lockfile') && github.event.issue.pull_request)
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@supersetbot trigger-dependabot-lockfile') && github.event.issue.pull_request && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER'))
defaults:
run:
working-directory: superset-frontend