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

Restrict permissions of GitHub Actions #37

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chvmvd
Copy link

@chvmvd chvmvd commented Apr 9, 2023

It appears that the default permissions on GITHUB_TOKEN have been changed to read-only. By default, we cannot use this action until we change the settings of Workflow permissions to Read and write permissions.
However, Read and write permissions are too much for this action. I think it should be for contents and pull-requests only.
JamesIves/github-pages-deploy-action requires write permission for contents and marocchino/sticky-pull-request-comment requires write permission for pull-requests.

This is my first contribution to OSS, so please let me know if I am wrong.

スクリーンショット 2023-04-09 10 48 32

@netomi
Copy link
Contributor

netomi commented Dec 18, 2023

You can assign permissions to jobs:

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

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.

3 participants