Skip to content

Benchmark fork PRs: name the head repository at checkout - #387

Merged
sgerbino merged 1 commit into
cppalliance:developfrom
sgerbino:pr/bench-fork-checkout
Oct 7, 2026
Merged

sgerbino merged 1 commit into
cppalliance:developfrom
sgerbino:pr/bench-fork-checkout

Conversation

@sgerbino

@sgerbino sgerbino commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

The first labeled fork PR (#386) failed in all three bench jobs with:

Refusing to check out fork pull request code from a 'pull_request_target' workflow.

actions/checkout requires the fork to be named explicitly before it will fetch fork commits under pull_request_target. The gate now exports head_repo (the PR head's repository; the base repo on dispatch) and the bench jobs pass it to checkout.

This stays within the workflow's security model: the head SHA is pinned by the gate at label time (a later push can't ride the approval), tooling always comes from the trusted base commit, the checkout keeps no credentials, and the benchmark label is precisely a maintainer's approval to run that code on the dedicated machines.

actions/checkout refuses to fetch fork commits from a
pull_request_target workflow unless the fork is named explicitly, so
the first labeled fork PR failed at checkout. Naming it is safe here:
the gate pins the head SHA at label time, the label is a maintainer's
approval to run that code on the dedicated machines, and the checkout
keeps no credentials.
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

Benchmark report

a80ce002fd8c (base) vs 0181ddd449ce (head)

  • ❌ linux — no results (job failed or runner offline)
  • ❌ windows — no results (job failed or runner offline)
  • ❌ macos — no results (job failed or runner offline)

Run & raw JSON artifacts · flag rule: |median Δ| > max(2%, 3×CV of the noisier side) · advisory only

@sgerbino
sgerbino marked this pull request as ready for review October 7, 2026 20:59
@sgerbino
sgerbino merged commit 1ff6756 into cppalliance:develop Oct 7, 2026
43 of 47 checks passed
@sgerbino
sgerbino deleted the pr/bench-fork-checkout branch October 7, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant