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

Limit permissions for GitHub actions #13607

Merged
merged 1 commit into from
Apr 27, 2022

Conversation

naveensrinivasan
Copy link
Contributor

 Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

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

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

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
@github-actions
Copy link

📦 Preview the examples and docs from this branch here: https://deploy-preview-13607--ol-site.netlify.app/.

@tschaub tschaub changed the title chore: Set permissions for GitHub actions Limit permissions for GitHub actions Apr 27, 2022
@tschaub tschaub merged commit 36ec956 into openlayers:main Apr 27, 2022
@tschaub
Copy link
Member

tschaub commented Apr 27, 2022

Thanks, @naveensrinivasan

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.

2 participants