Skip to content

Add checks: write permission to PR benchmark workflows#8

Merged
epompeii merged 1 commit into
mainfrom
checks-write-permission
Jun 17, 2026
Merged

Add checks: write permission to PR benchmark workflows#8
epompeii merged 1 commit into
mainfrom
checks-write-permission

Conversation

@epompeii

Copy link
Copy Markdown
Member

Summary

Match bencherdev/bencher#895, which makes bencher run --github-actions always create a Bencher Report GitHub Check (so it can gate branch protection as a required status check). Creating the check needs the checks: write permission.

Add checks: write alongside the existing pull-requests: write in the two workflows that run bencher run --github-actions on pull requests:

  • pr_benchmarks.yml
  • fork_pr_benchmarks_track.yml

This mirrors the canonical snippets updated in #895 (pull-requests-code.mdx and pull-requests-fork-track-code.mdx), with checks: write listed before pull-requests: write. base_benchmarks.yml already had checks: write; the closed/run workflows need no permissions block.

Note: the check is best-effort, so a missing checks: write only produces a warning rather than failing the run, but setting it is required for the Check to actually appear.

🤖 Generated with Claude Code

The GitHub Actions how-to docs now recommend both checks: write and
pull-requests: write for the PR workflows. Add checks: write to
pr_benchmarks.yml and fork_pr_benchmarks_track.yml to match.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🐰 Bencher Report

Branchchecks-write-permission
Testbedubuntu-latest
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
nanoseconds (ns)
(Result Δ%)
Upper Boundary
nanoseconds (ns)
(Limit %)
bencher::mock_0📈 view plot
🚷 view threshold
5.59 ns
(+11.41%)Baseline: 5.02 ns
11.42 ns
(48.99%)
bencher::mock_1📈 view plot
🚷 view threshold
19.16 ns
(+22.34%)Baseline: 15.66 ns
22.22 ns
(86.21%)
bencher::mock_2📈 view plot
🚷 view threshold
22.61 ns
(-6.96%)Baseline: 24.31 ns
31.09 ns
(72.75%)
bencher::mock_3📈 view plot
🚷 view threshold
33.77 ns
(-2.06%)Baseline: 34.48 ns
42.02 ns
(80.36%)
bencher::mock_4📈 view plot
🚷 view threshold
46.94 ns
(+5.69%)Baseline: 44.41 ns
51.02 ns
(92.00%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

Copy link
Copy Markdown

🐰 Bencher Report

Branchfork/checks-write-permission
Testbedubuntu-latest
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
nanoseconds (ns)
(Result Δ%)
Upper Boundary
nanoseconds (ns)
(Limit %)
bencher::mock_0📈 view plot
🚷 view threshold
1.00 ns
(-80.08%)Baseline: 5.02 ns
11.42 ns
(8.76%)
🐰 View full continuous benchmarking report in Bencher

@epompeii epompeii merged commit 4d70af1 into main Jun 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant