Skip to content

Add issues: write permission to Auto Author Assign workflow#85

Merged
HodaSalim merged 1 commit into
mainfrom
fix-auto-assign-author-permissions
Jun 22, 2026
Merged

Add issues: write permission to Auto Author Assign workflow#85
HodaSalim merged 1 commit into
mainfrom
fix-auto-assign-author-permissions

Conversation

@HodaSalim

@HodaSalim HodaSalim commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The Auto Author Assign workflow has been failing on every PR with Resource not accessible by integration when calling POST /repos/{owner}/{repo}/issues/{issue_number}/assignees.
  • That endpoint requires issues: write, but the workflow only granted pull-requests: write. Added the missing scope (minimum-privilege fix; kept pull-requests: write for forward-compat with future action features like labels/reviewers).

Test plan

  • yq '.permissions' .github/workflows/auto-assign-author.yml returns both pull-requests: write and issues: write.
  • YAML still parses; on:, jobs.assign, and the step's uses/with are unchanged.
  • After merge: open a test PR and confirm the Auto Author Assign / assign job is green and the PR author appears under Assignees.

@HodaSalim HodaSalim requested a review from a team as a code owner June 22, 2026 17:15
@github-actions github-actions Bot added the repo label Jun 22, 2026
The auto-assign-author workflow was failing with "Resource not accessible
by integration" because GitHub's add-assignees endpoint requires
issues: write, not pull-requests: write.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Hoda Salim <hoda.s.salim@gmail.com>
@HodaSalim HodaSalim force-pushed the fix-auto-assign-author-permissions branch from 2efe9a4 to 2c41e1f Compare June 22, 2026 17:17
@HodaSalim HodaSalim merged commit e4aa08c into main Jun 22, 2026
7 checks passed
@HodaSalim HodaSalim deleted the fix-auto-assign-author-permissions branch June 22, 2026 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants