From 26521434c5e9488fc56471cead789829cd92b5f0 Mon Sep 17 00:00:00 2001 From: Everett Pompeii Date: Tue, 16 Jun 2026 02:53:22 +0000 Subject: [PATCH] Use --key/BENCHER_API_KEY instead of deprecated --token Bencher deprecated user API tokens in favor of API keys (bencherdev/bencher#897). Update all authenticating workflows to pass the credential via the --key option and the BENCHER_API_KEY secret. Also restore the missing line-continuation backslash on the --branch line in pr_benchmarks.yml so the bencher run command matches the canonical docs. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/base_benchmarks.yml | 2 +- .github/workflows/fork_pr_benchmarks_closed.yml | 2 +- .github/workflows/fork_pr_benchmarks_track.yml | 2 +- .github/workflows/pr_benchmarks.yml | 4 ++-- .github/workflows/pr_benchmarks_closed.yml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/base_benchmarks.yml b/.github/workflows/base_benchmarks.yml index 93cc71e..77bca5d 100644 --- a/.github/workflows/base_benchmarks.yml +++ b/.github/workflows/base_benchmarks.yml @@ -15,7 +15,7 @@ jobs: run: | bencher run \ --project example \ - --token '${{ secrets.BENCHER_API_TOKEN }}' \ + --key '${{ secrets.BENCHER_API_KEY }}' \ --branch main \ --testbed ubuntu-latest \ --threshold-measure latency \ diff --git a/.github/workflows/fork_pr_benchmarks_closed.yml b/.github/workflows/fork_pr_benchmarks_closed.yml index 7f12e50..5aaf9ea 100644 --- a/.github/workflows/fork_pr_benchmarks_closed.yml +++ b/.github/workflows/fork_pr_benchmarks_closed.yml @@ -13,5 +13,5 @@ jobs: run: | bencher archive \ --project example \ - --token '${{ secrets.BENCHER_API_TOKEN }}' \ + --key '${{ secrets.BENCHER_API_KEY }}' \ --branch "$GITHUB_HEAD_REF" diff --git a/.github/workflows/fork_pr_benchmarks_track.yml b/.github/workflows/fork_pr_benchmarks_track.yml index aa40b6b..6f4c974 100644 --- a/.github/workflows/fork_pr_benchmarks_track.yml +++ b/.github/workflows/fork_pr_benchmarks_track.yml @@ -41,7 +41,7 @@ jobs: run: | bencher run \ --project example \ - --token '${{ secrets.BENCHER_API_TOKEN }}' \ + --key '${{ secrets.BENCHER_API_KEY }}' \ --branch "$PR_HEAD" \ --hash "$PR_HEAD_SHA" \ --start-point "$PR_BASE" \ diff --git a/.github/workflows/pr_benchmarks.yml b/.github/workflows/pr_benchmarks.yml index deb0457..a259561 100644 --- a/.github/workflows/pr_benchmarks.yml +++ b/.github/workflows/pr_benchmarks.yml @@ -17,8 +17,8 @@ jobs: run: | bencher run \ --project example \ - --token '${{ secrets.BENCHER_API_TOKEN }}' \ - --branch "$GITHUB_HEAD_REF" + --key '${{ secrets.BENCHER_API_KEY }}' \ + --branch "$GITHUB_HEAD_REF" \ --start-point "$GITHUB_BASE_REF" \ --start-point-hash '${{ github.event.pull_request.base.sha }}' \ --start-point-clone-thresholds \ diff --git a/.github/workflows/pr_benchmarks_closed.yml b/.github/workflows/pr_benchmarks_closed.yml index d62dad5..c94af0f 100644 --- a/.github/workflows/pr_benchmarks_closed.yml +++ b/.github/workflows/pr_benchmarks_closed.yml @@ -15,5 +15,5 @@ jobs: run: | bencher archive \ --project example \ - --token '${{ secrets.BENCHER_API_TOKEN }}' \ + --key '${{ secrets.BENCHER_API_KEY }}' \ --branch "$GITHUB_HEAD_REF"