ghtier
← All permissions
Repository permission·issues:write

Issues: Write

Tier 2 · Medium

Why Tier 2

Creates and edits issues and comments. Text in issues is what prompt injection against AI agents uses.

Target
Repository
Plane
DataCollaboration: Issues, discussions, projects and issue configuration.
Granted by
Fine-grained PAT, GitHub App, GITHUB_TOKEN
Available on
Every setup
In a workflow
permissions: issues: writeWorkflow scopes by tier

What it unlocks

40 REST endpoints need this permission, from GitHub's docs data. Some also need another permission, and a few work with only one kind of token.

  • POST /repos/{owner}/{repo}/issues
  • PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}also needs Pull requests: Write
  • DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}also needs Pull requests: Write
  • PUT /repos/{owner}/{repo}/issues/comments/{comment_id}/pin
  • DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/pin
  • POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions
  • DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}
  • PATCH /repos/{owner}/{repo}/issues/{issue_number}also needs Pull requests: Write
  • POST /repos/{owner}/{repo}/issues/{issue_number}/artifacts
  • PATCH /repos/{owner}/{repo}/issues/{issue_number}/artifacts/{artifact_number}

Roles that include it

  • T0OwnerThe organization and every repository in it
  • T0All-repository adminEvery repository in the organization
  • T1WriteOne repository
  • T1MaintainOne repository
  • T1AdminOne repository
  • T1Collaborator on a personal repositoryOne repository owned by a personal account
  • T1Security managerThe organization and every repository in it(in part: Moderation on repositories they can already write to.)
  • T1App managerGitHub Apps owned by the organization(in part: Moderation on repositories they can already write to.)
  • T1All-repository writeEvery repository in the organization
  • T1All-repository maintainEvery repository in the organization

Custom role permissions that add it

An owner can build a custom role from these on Enterprise Cloud. Nobody holds one until a custom role with it is assigned.

  • Assign or remove a useradd_assigneerepository role
  • Add or remove a labeladd_labelrepository role
  • Close an issueclose_issuerepository role
  • Reopen a closed issuereopen_issuerepository role
  • Delete an issuedelete_issuerepository role
  • Mark an issue as a duplicatemark_as_duplicaterepository role
  • Set milestonesset_milestonerepository role
  • Set an issue typeset_issue_typerepository role

Classic scopes that reach it

No classic scope reaches it. Only fine-grained PATs, Apps or GITHUB_TOKEN can grant it.

Attack paths

Other levels

GitHub Docs: Repository permissions for "Issues"