# Codespaces token

Tier 2 key, `key:codespaces-token`. Page: https://ghtier.com/tier/keys-policies/codespaces-token

Read and write on the codespace's repository when its owner has write access, plus any other repositories the codespace was authorized for. Data plane, and it expires on its own.

**Related permissions:** [Contents: Write (repository)](https://ghtier.com/tier/permissions/contents-write.md) (Tier 2), [Codespaces: Write (repository)](https://ghtier.com/tier/permissions/codespaces-write.md) (Tier 2)

**Strange findings:** [Codespaces a member pays for skip the organization's policies](https://ghtier.com/strange-findings/finding-user-paid-codespaces-skip-org-policies.md)

**Audit log events that show it:** [codespaces.create](https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/audit-log-events-for-your-enterprise), [codespaces.connect](https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/audit-log-events-for-your-enterprise), [codespaces.allow_permissions](https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/audit-log-events-for-your-enterprise)

**Sources:**
- [GitHub Docs: Security in GitHub Codespaces](https://docs.github.com/en/codespaces/reference/security-in-github-codespaces)

From ghtier (https://ghtier.com). Every entry and link: https://ghtier.com/data/graph.json. Tiers: https://ghtier.com/tier.
