ci: add statuses write permission to prombench workflow

The workflow posts commit status updates via the GitHub API, but
the GITHUB_TOKEN only had 'contents: read', causing HTTP 403 on
all statuses API calls.

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
This commit is contained in:
Julien Pivotto 2026-03-06 12:51:26 +01:00
parent d66944d856
commit f04b52773e

View file

@ -24,6 +24,8 @@ jobs:
benchmark_start:
name: Benchmark Start
if: github.event.action == 'prombench_start'
permissions:
statuses: write
runs-on: ubuntu-latest
steps:
- name: Update status to pending
@ -59,6 +61,8 @@ jobs:
benchmark_cancel:
name: Benchmark Cancel
if: github.event.action == 'prombench_stop'
permissions:
statuses: write
runs-on: ubuntu-latest
steps:
- name: Update status to pending
@ -94,6 +98,8 @@ jobs:
benchmark_restart:
name: Benchmark Restart
if: github.event.action == 'prombench_restart'
permissions:
statuses: write
runs-on: ubuntu-latest
steps:
- name: Update status to pending