mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
CI: restrict remove-reviewer workflow to main repo only
Adds a github.repository guard so the job does not run in forks, preventing unintended resource consumption and command execution against fork PRs.
This commit is contained in:
@@ -18,8 +18,9 @@ permissions:
|
||||
jobs:
|
||||
remove:
|
||||
runs-on: ubuntu-latest
|
||||
# Only fire on PR comments that contain the slash command
|
||||
# Only fire on PR comments in the main repo that contain the slash command
|
||||
if: |
|
||||
github.repository == 'HDFGroup/hdf5' &&
|
||||
github.event.issue.pull_request != null &&
|
||||
contains(github.event.comment.body, '/remove-reviewer')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user