GitHub Actions OIDC - short-lived cloud tokens instead of stored secrets
Answer: OpenID Connect allows your workflows to exchange short-lived tokens directly from your cloud provider. After you have established a trust connection with a provider that supports OIDC, a job can request a short-lived access token. That token is only valid for a single job, then automatically expires.
Examples
The job requests a token from GitHub's OIDC provider. A step or action can present that token to the cloud provider as proof of the workflow's identity.
See also
Claims
- id: C1 claim: OIDC lets workflows exchange short-lived tokens from a cloud provider. source: S1 evidence: "exchange short-lived tokens directly from your cloud provider"
- id: C2 claim: The same short-lived token exchange is described in the GitHub docs source. source: S2 evidence: "exchange short-lived tokens directly from your cloud provider"
- id: C3 claim: The cloud token is valid for a single job and then expires. source: S2 evidence: "only valid for a single job, and then automatically expires"
Sources
- [S1] OpenID Connect. GitHub Docs. https://docs.github.com/en/actions/concepts/security/openid-connect . License: CC-BY-4.0. Accessed 2026-11-18.
- [S2] openid-connect.md. github/docs (GitHub). https://github.com/github/docs/blob/main/content/actions/concepts/security/openid-connect.md . License: CC-BY-4.0. Accessed 2026-11-18.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: GitHub Docs, OpenID Connect; github/docs (GitHub), openid-connect.md. CC-BY-4.0 (https://raw.githubusercontent.com/github/docs/main/LICENSE). Copyright GitHub, Inc. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: GitHub Docs, OpenID Connect; github/docs (GitHub), openid-connect.md. CC-BY-4.0 (https://raw.githubusercontent.com/github/docs/main/LICENSE). Copyright GitHub, Inc.
Cite this
iinventedlight. 2026. "GitHub Actions OIDC - short-lived cloud tokens instead of stored secrets." iinventedlight Library, iil:note:4fmmwzm1, version of 2026-11-18. https://iinventedlight.com/library/notes/gh-actions-oidc/. License: CC-BY-4.0.
@misc{iil_note_4fmmwzm1,
author = {{iinventedlight}},
title = {{GitHub Actions OIDC - short-lived cloud tokens instead of stored secrets}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-18},
url = {https://iinventedlight.com/library/notes/gh-actions-oidc/},
note = {Permanent ID iil:note:4fmmwzm1. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/gh-actions-oidc.md.