# Deploy key with write access

Tier 1 key, `key:deploy-key`. Page: https://ghtier.com/tier/keys-policies/deploy-key

Pushes to its repository like Contents: write. A key carries no scopes, so nothing in it stops pushes to workflow files either, and it has no user, no 2FA and no expiry.

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

**Defenses (checklist):** [Audit and revoke stale PATs, unused SSH keys, and inactive accounts](https://ghtier.com/checklist/auth-audit-stale-creds.md)

**Strange findings:** [Deploy keys keep working after the person leaves](https://ghtier.com/strange-findings/finding-deploy-key-outlives-user.md)

**Audit log events that show it:** [public_key.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), [public_key.update](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), [git.push](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: Managing deploy keys](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/managing-deploy-keys)

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