Skip to content

Add issues:write to PR Format Check job permissions#66

Merged
apattu200 merged 1 commit into
developfrom
fix/pr-lint-issues-write
Jul 13, 2026
Merged

Add issues:write to PR Format Check job permissions#66
apattu200 merged 1 commit into
developfrom
fix/pr-lint-issues-write

Conversation

@bunnam988

Copy link
Copy Markdown
Contributor

Summary

Adds issues: write and explicit contents: read to the pr-lint job permissions in the shared PR Format Check workflow.

Why

PR conversation comments are created/updated/deleted via the Issues API (/repos/{o}/{r}/issues/comments). To be robust, the job needs issues: write in addition to pull-requests: write. This resolves a reviewer concern that pull-requests: write alone may be insufficient for the comment operations.

Least-privilege final set:

permissions:
  contents: read
  issues: write
  pull-requests: write

Files changed

  • .github/workflows/pr-lint.yml

PR conversation comments use the Issues API (/issues/comments), so the reusable
workflow job needs issues:write in addition to pull-requests:write. Also adds
explicit contents:read for least-privilege.
Copilot AI review requested due to automatic review settings July 13, 2026 10:24
@bunnam988 bunnam988 requested a review from a team as a code owner July 13, 2026 10:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the shared PR Format Check GitHub Actions workflow to ensure it has the correct token scopes to create/update/delete PR conversation comments via the Issues API while keeping permissions least-privilege.

Changes:

  • Add issues: write to pr-lint job permissions to support gh api ... /issues/.../comments operations.
  • Add explicit contents: read to pr-lint job permissions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@apattu200 apattu200 merged commit 07ede8f into develop Jul 13, 2026
8 checks passed
@apattu200 apattu200 deleted the fix/pr-lint-issues-write branch July 13, 2026 10:36
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants