← All notes

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

Claims

Sources

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

Permanent ID: iil:note:rhmehdpa

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.},
}

Markdown

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.

All artifact files (JSON index)

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.