Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for GITHUB_TOKEN required permissions #491

Closed
bogdannazarenko opened this issue Jun 7, 2021 · 1 comment · Fixed by #492
Closed

Documentation for GITHUB_TOKEN required permissions #491

bogdannazarenko opened this issue Jun 7, 2021 · 1 comment · Fixed by #492
Labels
bug Something isn't working

Comments

@bogdannazarenko
Copy link

No clear way to identify required permissions for GITHUB_TOKEN when org level permissions are set to readonly by default.
Please add documentation for required permissions.
Specifying required permissions for github action should be standard.

By default, github sets GITHUB_TOKEN's permissions to all writes. For security purposes companies change these permissions to readonly and override to write where needed in github action workflows.

https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#permissions

@bogdannazarenko bogdannazarenko added the bug Something isn't working label Jun 7, 2021
@flaxel
Copy link
Contributor

flaxel commented Jun 7, 2021

The action must read the issues and pull requests. It must also be able to write to a pull request or issue. This means you have to specify the following permissions:

permissions:
  issues: write
  pull-requests: write

I want to create a pull request to add this information to the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants