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

[actions] setting minimum token permissions for github actions #2669

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ashishkurmi
Copy link

This PR sets minimum token permission for all workflow files in the repository. Currently, GitHub token has elevated access as demonstrated by the following GitHub Actions workflow run that was executed 13 hours ago:
https://github.com/airbnb/javascript/actions/runs/3356458922/jobs/5561538946#step:1:19

In addition to this PR, if you have repo admin access, then you should consider setting the following permission so that new workflow files will default to read-only permissions
https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#setting-the-permissions-of-the-github_token-for-your-repository

Signed-off-by: Ashish Kurmi [email protected]

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