Repository navigation
Description
Both .github/workflows/check-tool-handler.yml and .github/workflows/check-authors-file.yml are pull_request_target workflows that check out the PR's head SHA directly:
on:
pull_request_target:
types: [ "opened" ]
branches: [ "develop" ]
...
- name: Clone PR Repository
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0Since actions/checkout@v6, checkout now refuses to check out a fork's PR head from a pull_request_target job unless allow-unsafe-pr-checkout: true is set, to prevent "pwn request" style vulnerabilities (https://gh.io/securely-using-pull_request_target):
##[error]Refusing to check out fork pull request code from a 'pull_request_target' workflow. This workflow runs with the base repository's GITHUB_TOKEN, secrets, default-branch cache scope, and runner access. ...
Impact: every PR opened from an actual fork now gets an immediate, unconditional failure on both checks, regardless of whether the contributor actually forgot to add themselves to AUTHORS or update ToolHandler.cpp. PRs from branches within OpenMS/OpenMS itself (e.g. claude/*, fix/*, maintainer branches) are unaffected, since the guard only triggers for genuine cross-repo (fork) heads — which is why this was easy to miss.
Confirmed failing runs (all fork PRs), all with the identical checkout error:
- https://github.com/OpenMS/OpenMS/actions/runs/29924648540 (
faster_SNERapid, 2026-07-22) - https://github.com/OpenMS/OpenMS/actions/runs/29924648148 (
faster_SNERapid, 2026-07-22) - https://github.com/OpenMS/OpenMS/actions/runs/29920085847 / 29920084049 / 29920084029 (
SN_interpolation, 2026-07-22) SN_fixes(2026-07-22),openswath-parquet-exporter-throw-9739(2026-07-21),pyopenms-pythonic-properties-9760(2026-07-21),agent/install-topp-headers(2026-07-21),add_user_survey_to_installer(2026-07-20)
All runs on same-repo branches in the same window (claude/*, fix/*, feature/*, develop, etc.) succeeded, confirming the guard is fork-specific. Last known-good run on a fork PR was 2026-07-14; failures start 2026-07-16, consistent with an actions/checkout version bump.
Proposed fix (opened as a PR): split each workflow into two — an unprivileged pull_request-triggered job that checks out the fork safely (no fork checkout guard, since it's not _target) and uploads the check result as an artifact, plus a privileged workflow_run-triggered companion job (runs only in the base repo's context, never touches fork code) that downloads the artifact and posts the PR comment. This is the pattern GitHub recommends as the secure replacement for pull_request_target + fork-code-checkout. Note github.event.workflow_run.pull_requests is empty for fork PRs, so the PR number is carried in the artifact rather than read from the workflow_run event.
Unrelated to the already-tracked #9721 (Bioconda nightly deploy) — different workflow, different root cause.
Activity
coderabbitai commentedon Jul 23, 2026
🔗 Related PRs
#7909 - Delete .github/workflows/openms_clang_format.yml [closed]
#9673 - Update GitHub Actions to latest stable versions [merged]
#9756 - Fix nightly update workflow: retry and decouple downstream dispatches [open]
#9759 - Retry gh workflow dispatches in nightly-sync job on transient API errors [open]
#9786 - Fix Check ToolHandler.cpp / Check AUTHORS File failing on every fork PR [open]
📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
pjones commentedon Jul 23, 2026
I would rather remove these two workflows than make them more complicated. They don't really do anything important enough to warrant doing all this work on them.
timosachsenberg commentedon Jul 23, 2026
I agree. Please remove them
docs(CHANGELOG): backfill entries for #9784, #9787 + fix stale ToolHa…