Skip to content

[CI] Grant id-token to benchmark wheel-build jobs for Sigstore signing - #7911

Draft
quinnlp wants to merge 1 commit into
mainfrom
quinnlp/token
Draft

[CI] Grant id-token to benchmark wheel-build jobs for Sigstore signing#7911
quinnlp wants to merge 1 commit into
mainfrom
quinnlp/token

Conversation

@quinnlp

@quinnlp quinnlp commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

PR #7840 added a keyless Sigstore signing step to the reusable build-benchmarks-wheel.yml, which requires id-token: write. The workflows that call it only granted permissions: read-all, which excludes id-token. A reusable workflow cannot request more token permissions than its caller, so every triggered benchmark workflow failed at startup validation ("workflow file issue", startup_failure) with zero jobs.

Add a job-level permissions block granting contents: read and id-token: write on each build-wheel job that calls the reusable signing workflow, leaving read-all intact for all other jobs.

@quinnlp
quinnlp marked this pull request as draft September 1, 2026 14:34
@kwasd
kwasd self-requested a review September 1, 2026 14:40
…signing

PR #7840 added a keyless Sigstore signing step to the reusable
build-benchmarks-wheel.yml, which requires `id-token: write`. The
workflows that call it granted `permissions: read-all`, which does not
include id-token (id-token is write-only and not part of read-all).

A job that calls a reusable workflow with `uses:` can only downgrade,
not elevate, the caller workflow's top-level token permissions, so the
grant must be at the caller top level (a job-level block on the calling
job is capped to the top-level default and has no effect). Because
`read-all` cannot be combined with an explicit `id-token: write`, the
permissions are spelled out to the scopes the workflows actually use:
contents (checkout), actions (artifact download, including the reports
cross-run comparison in the test path), and id-token (signing).

Without this, every triggered benchmark workflow failed at startup
validation ("workflow file issue", startup_failure) with zero jobs.

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

quinnlp commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

@kwasd unfortunately this did not fix the issue. The PR still cannot trigger vLLM, SGLang, or Triton benchmarks.

Example: https://github.com/intel/intel-xpu-backend-for-triton/actions/runs/33521556809

Could you take over this please?

Here is an example of the original issue I was trying to fix: https://github.com/intel/intel-xpu-backend-for-triton/actions/runs/33517960494

@quinnlp
quinnlp requested a review from kwasd September 1, 2026 15:15
@kwasd

kwasd commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

ok will check

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.

2 participants