Skip to content

Assign pull-requests: write permission to build action #263

@amal-stack

Description

@amal-stack

For GitHub actions to comment on a PR, the pull-requests: write permission is required. See: [this discussion].(https://github.com/orgs/community/discussions/26644)
The lack of this permission is causing the Resource not available by integration error for the build action.
This permission can be added to build.yml as:

 permissions:
      pull-requests: write

I have tried this on my fork and the build passes and adds the comment successfully: amal-stack#2.

Also, see: Assigning Permissions to Jobs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions