id-token: write

The workflow permission that allows a job to request a GitHub OpenID Connect token.

In more detail

Without it the request variables ACTIONS_ID_TOKEN_REQUEST_URL and ACTIONS_ID_TOKEN_REQUEST_TOKEN are not even set on the runner. Because a permissions block replaces the defaults, list any other permissions the job needs, such as contents: read, beside it.

Example

permissions:
  contents: read
  id-token: write

Related terms

Taught in

References

Certification courses