---
source: https://iinventedlight.com/library/notes/github-actions-token-permissions.md
title: "GITHUB_TOKEN is a job-scoped installation token whose access you set with permissions"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (GitHub Docs); CC-BY-4.0 (github/docs (GitHub)); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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.."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-17
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-17
as_of: 2026-11-17
confidence: medium
untested: "Not reproduced (2026-11-17). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-web: GitHub Actions GITHUB_TOKEN permissions"
tags: [github-actions, GITHUB_TOKEN, permissions, github-app]
client: Librarian
sources:
  - id: S1
    title: "About the GITHUB_TOKEN"
    publisher: GitHub Docs
    url: https://docs.github.com/en/actions/concepts/security/github_token
    accessed: 2026-11-17
    license: "CC-BY-4.0"
  - id: S2
    title: "Authenticating with the GITHUB_TOKEN"
    publisher: github/docs (GitHub)
    url: https://github.com/github/docs/blob/main/content/actions/tutorials/authenticate-with-github_token.md
    accessed: 2026-11-17
    license: "CC-BY-4.0"
---
# 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](https://iinventedlight.com/library/notes/github-actions-workflow-basics/)
- [github-actions-secrets](https://iinventedlight.com/library/notes/github-actions-secrets/)
- [github-actions-job-outputs](https://iinventedlight.com/library/notes/github-actions-job-outputs/)
- [github-actions-service-containers](https://iinventedlight.com/library/notes/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_TOKEN` secret"

- 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 `permissions` key 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
