Skip to content

ci(assign-issue): grant issues write permission to GITHUB_TOKEN - #152

Merged
LinXunFeng merged 1 commit into
mainfrom
ci/assign-issue-permissions
Aug 22, 2026
Merged

ci(assign-issue): grant issues write permission to GITHUB_TOKEN#152
LinXunFeng merged 1 commit into
mainfrom
ci/assign-issue-permissions

Conversation

@LinXunFeng

Copy link
Copy Markdown
Member

Description

The Issue assignment workflow fails on every newly opened issue:

Run pozil/auto-assign-issue@v1
Error: Resource not accessible by integration

The default workflow permission of the repository is read-only:

{"default_workflow_permissions": "read", "can_approve_pull_request_reviews": true}

.github/workflows/assign-issue.yml declares no permissions block, so
GITHUB_TOKEN is granted read-only access and the action cannot assign the
issue. deploy.yml was already given an explicit permission in 562cad4, this
workflow was missed.

Grant the job the single permission it needs:

jobs:
  auto-assign:
    runs-on: ubuntu-latest
    permissions:
      issues: write

The workflow only triggers on issues, so issues: write is enough,
pull-requests: write is not needed.

The default workflow permission of the repository is read-only, and this
workflow declares no permissions block, so GITHUB_TOKEN cannot assign the
issue and the run fails with "Resource not accessible by integration".

Opening issue #150 triggered the latest failure:
https://github.com/fluttercandies/flutter_scrollview_observer/actions/runs/32442695186
@LinXunFeng
LinXunFeng merged commit 4ab79d2 into main Aug 22, 2026
2 checks passed
@LinXunFeng
LinXunFeng deleted the ci/assign-issue-permissions branch August 22, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant