Skip to content

Allow forks to run benchmarks and comment#1552

Closed
cmdupuis3 wants to merge 1 commit into
mainfrom
cmd/fork_test
Closed

Allow forks to run benchmarks and comment#1552
cmdupuis3 wants to merge 1 commit into
mainfrom
cmd/fork_test

Conversation

@cmdupuis3

Copy link
Copy Markdown
Collaborator

This is a test PR for #1551.

Fork PRs get a read-only GITHUB_TOKEN, so the benchmark workflow's inline comment step fails with 403. Split into two workflows: the pull_request job runs benchmarks (read-only) and uploads results + PR number as an artifact; a new workflow_run job posts the comment from the default branch with the repo's write token. The comment job never checks out PR code, keeping the write token safe. Fixes #1547.

Fork PRs get a read-only GITHUB_TOKEN, so the benchmark workflow's inline
comment step fails with 403. Split into two workflows: the pull_request job
runs benchmarks (read-only) and uploads results + PR number as an artifact;
a new workflow_run job posts the comment from the default branch with the
repo's write token. The comment job never checks out PR code, keeping the
write token safe. Fixes #1547.
@cmdupuis3 cmdupuis3 requested a review from rajeeja July 8, 2026 19:04
@cmdupuis3 cmdupuis3 added the run-benchmark Run ASV benchmark workflow label Jul 8, 2026
@cmdupuis3 cmdupuis3 closed this Jul 8, 2026
@cmdupuis3 cmdupuis3 deleted the cmd/fork_test branch July 10, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-benchmark Run ASV benchmark workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PR from fork cannot write benchmarking comment

2 participants