Skip to content

Benchmark fork PRs: complete the checkout opt-in - #388

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

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

Conversation

@sgerbino

@sgerbino sgerbino commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #387: after it merged, re-labeling #386 still failed —

Refusing to check out fork pull request code from a 'pull_request_target' workflow. … set 'allow-unsafe-pr-checkout: true' on the actions/checkout step.

Naming the head repository (#387) is not accepted as the opt-in; the guard requires its literal flag. This sets allow-unsafe-pr-checkout: true on the Checkout head step only.

Why this stays governed: adding the benchmark label requires triage access, the gate honors only the labeling event itself and pins the head SHA at that moment (later pushes cannot ride the approval), the label is stripped after each run, persist-credentials: false, and comparison tooling always comes from the trusted base commit. The operative trust statement: anyone with triage access can authorize a reviewed PR's code to run on the dedicated machines — label after reading the diff.

Naming the head repository was not enough: the checkout guard demands
its literal allow-unsafe-pr-checkout flag before fetching fork code
under pull_request_target. The approval story is unchanged -- the gate
pins the head SHA at label time, the benchmark label is the
maintainer's consent to run that code on the dedicated machines, no
credentials persist, and tooling comes from the trusted base commit.
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

Benchmark report

1ff6756ed6fb (base) vs 030038a2eb33 (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 21:15
@sgerbino
sgerbino merged commit ff29665 into cppalliance:develop Oct 7, 2026
43 of 47 checks passed
@sgerbino
sgerbino deleted the pr/bench-checkout-optin branch October 7, 2026 21:16
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