Skip to content

Permissions issue with forks (public repositories) #43

@mattstratton

Description

@mattstratton

I'm a little confused by this portion By default, pull requests from a fork does not have "write" permissions when running in GitHub Actions, and those Pull Requests can not be approved or labeled.

We have a public repo with the GH action enabled. It works fine with my pull requests (branches in the repo). On PRs from forks, we get the error:
Error: Codeball Labeler failed to access GitHub. Check the "GITHUB_TOKEN Permissions" of this job and make sure that the job has WRITE permissions to Pull Requests.

Everything I can see makes it seem that is only the case for private repos: I have the job configured for permissions: write-all so I don't quite understand how to get this to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions