Menu

1 / 2

GitHub Actions id-token write permission not granted to the job

DEV Community: cicd·Kay·about 15 hours ago
#xx2eByuA
#devtocicd#devto#dev#permissions#workflow
Reading 0:00
15s threshold

A GitHub Actions id-token write permission not granted problem is almost never a missing line; it is a line in a place that does not reach the job that needs it. The failure text is the same in every case, so the workflow file rather than the log is what distinguishes them.

A job-level permissions block replaces the workflow-level one rather than merging with it, so a job that declares any scope must declare every scope it needs.

What this error means

An OIDC login fails and the workflow visibly contains id-token: write . Adding it again somewhere else changes nothing, and the job summary lists a permission set that does not include it.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.