# Packages: Write (repository)

Tier 1 permission, `permission:packages:write`. Page: https://ghtier.com/tier/permissions/packages-write

Publishes, deletes and restores package versions. Only the GITHUB_TOKEN has it: a workflow reaches a package linked to its repository, or one that gave the repository Actions access; Maven and Gradle packages always follow the repository. Whatever is published is pulled by everyone who depends on it.

**Included in roles:** [Write](https://ghtier.com/tier/roles/repo-write.md) (Tier 1), [Maintain](https://ghtier.com/tier/roles/repo-maintain.md) (Tier 1), [Admin](https://ghtier.com/tier/roles/repo-admin.md) (Tier 1), [Collaborator on a personal repository](https://ghtier.com/tier/roles/personal-repo-collaborator.md) (Tier 1), [Owner](https://ghtier.com/tier/roles/org-owner.md) (Tier 0), [All-repository write](https://ghtier.com/tier/roles/org-all-repo-write.md) (Tier 1), [All-repository maintain](https://ghtier.com/tier/roles/org-all-repo-maintain.md) (Tier 1), [All-repository admin](https://ghtier.com/tier/roles/org-all-repo-admin.md) (Tier 0)

**Reached by classic scopes:** [write:packages](https://ghtier.com/tier/tokens/write-packages.md) (Tier 1)

**Enables techniques:** [Publish a malicious version with a stolen token](https://ghtier.com/attack-paths/technique-malicious-release.md) (Tier 1)

**Ways in that use it:** [Compromised Action or package](https://ghtier.com/attack-paths/upstream-dependency.md) (Tier 1)

**Gained through escalations:** [Start a privileged publish job by hand](https://ghtier.com/attack-paths/escalation-dispatch-to-publish.md) (Tier 1), [Poison a cache the release build restores](https://ghtier.com/attack-paths/escalation-fork-pr-to-cache.md) (Tier 1)

**Strange findings:** [A package made public cannot be made private again](https://ghtier.com/strange-findings/finding-public-package-cannot-go-private.md)

**Sources:**
- [GitHub docs](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#permissions)

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