Skip to content

CI: restrict review-checklist workflows to HDFGroup/hdf5 only#6515

Merged
brtnfld merged 1 commit into
HDFGroup:developfrom
brtnfld:guard-review-checklist-fork-execution
Jul 9, 2026
Merged

CI: restrict review-checklist workflows to HDFGroup/hdf5 only#6515
brtnfld merged 1 commit into
HDFGroup:developfrom
brtnfld:guard-review-checklist-fork-execution

Conversation

@brtnfld

@brtnfld brtnfld commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • review-checklist.yml and review-checklist-gather.yml use pull_request_target/workflow_run/pull_request_review triggers with elevated permissions (pull-requests: write, issues: write).
  • GitHub copies workflow files into forks. Any fork with Actions enabled ends up independently running these privileged workflows against its own PRs — observed happening on a course sandbox fork: ci: deploy HDF-R1 inline risk-signal workflow sp26-hdfgroup/hdf5-sandbox#2 (comment)
  • Add github.repository == 'HDFGroup/hdf5' to both jobs' if: conditions, matching the guard already used in review-checklist-test.yml, so the job short-circuits before doing anything when running from a fork's own copy.

These workflows use pull_request_target / workflow_run with elevated
permissions (pull-requests: write, issues: write). Because GitHub
copies workflow files into forks, any fork with Actions enabled was
independently running these privileged workflows against its own
PRs, e.g. sp26-hdfgroup#2.

Add the same github.repository == 'HDFGroup/hdf5' guard already used
in review-checklist-test.yml so the job-level if short-circuits
before doing anything in a fork's copy of the workflow.
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Review Checklist

This PR touches the following areas. Each needs a sign-off
from its listed owners before merging.

✅ All areas have been signed off.

@github-actions github-actions Bot removed the request for review from glennsong09 July 9, 2026 14:05
@vchoi-hdfgroup vchoi-hdfgroup added the github_actions Pull requests that update GitHub Actions code label Jul 9, 2026
@brtnfld brtnfld merged commit c081ea1 into HDFGroup:develop Jul 9, 2026
132 of 133 checks passed
@github-project-automation github-project-automation Bot moved this from To be triaged to Done in HDF5 - TRIAGE & TRACK Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants