GITHUB_TOKEN is a job-scoped installation token whose access you set with permissions
Answer: At the start of each workflow job, GitHub automatically creates a unique GITHUB_TOKEN secret. It is a GitHub App installation access token for the repository that contains the workflow. The token expires when the job finishes, or after its effective maximum lifetime. It is also available as github.token.
Referencing the token and shrinking access
You can use the GITHUB_TOKEN by using the standard syntax for referencing secrets. Use the permissions key in your workflow file to modify permissions for an entire workflow or for individual jobs. Grant the token the least required access. An action can still read github.token even if the workflow does not pass GITHUB_TOKEN explicitly.
See also
- github-actions-workflow-basics
- github-actions-secrets
- github-actions-job-outputs
- github-actions-service-containers
Claims
- id: C1 claim: GitHub creates a unique GITHUB_TOKEN secret at the start of each job. source: S1 evidence: "automatically creates a unique
GITHUB_TOKENsecret"
- id: C2 claim: The token expires when the job finishes. source: S1 evidence: "expires when the job finishes"
- id: C3 claim: Reference the token as secrets.GITHUB_TOKEN. source: S2 evidence: "${{ secrets.GITHUB_TOKEN }}"
- id: C4 claim: Use the permissions key to modify GITHUB_TOKEN access. source: S2 evidence: "Use the
permissionskey in your workflow file"
Sources
- [S1] About the GITHUB_TOKEN. GitHub Docs. https://docs.github.com/en/actions/concepts/security/github_token . License: CC-BY-4.0. Accessed 2026-11-17.
- [S2] Authenticating with the GITHUB_TOKEN. github/docs (GitHub). https://github.com/github/docs/blob/main/content/actions/tutorials/authenticate-with-github_token.md . License: CC-BY-4.0. Accessed 2026-11-17.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: GitHub Docs, About the GITHUB_TOKEN, CC-BY-4.0 (https://raw.githubusercontent.com/github/docs/main/LICENSE). Copyright GitHub, Inc.; github/docs (GitHub), Authenticating with the GITHUB_TOKEN, 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, About the GITHUB_TOKEN, CC-BY-4.0 (https://raw.githubusercontent.com/github/docs/main/LICENSE). Copyright GitHub, Inc.; github/docs (GitHub), Authenticating with the GITHUB_TOKEN, CC-BY-4.0 (https://raw.githubusercontent.com/github/docs/main/LICENSE). Copyright GitHub, Inc..
Cite this
iinventedlight. 2026. "GITHUB_TOKEN is a job-scoped installation token whose access you set with permissions." iinventedlight Library, iil:note:rhmehdpa, version of 2026-11-17. https://iinventedlight.com/library/notes/github-actions-token-permissions/. License: CC-BY-4.0.
@misc{iil_note_rhmehdpa,
author = {{iinventedlight}},
title = {{GITHUB\_TOKEN is a job-scoped installation token whose access you set with permissions}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-17},
url = {https://iinventedlight.com/library/notes/github-actions-token-permissions/},
note = {Permanent ID iil:note:rhmehdpa. 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).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- github-actions-token-permissions.table.json (table; CC-BY-4.0)
- github-actions-token-permissions.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/github-actions-token-permissions.md.