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

security: add permissions block to workflows #210

Merged
merged 4 commits into from
Mar 12, 2024

Conversation

reakaleek
Copy link
Member

Details

⚠️ This PR was created by an automated tool. Please review the changes carefully. ⚠️

We want to set the default permissions for workflows to read-only for contents.
This is a security measure to prevent accidental changes to the repository.

This change adds a top-level permissions block to all workflows in the .github/workflows directory.

permissions:
  contents: read

In some cases workflows might need more permissions than just contents: read.
Please checkout this branch and add the necessary permissions to the workflows.

If your workflow uses a Personal Access Token (PAT), we can still add the permissions block,
but it will not have any effect.

Merging this PR as is might cause workflows that need more permissions to fail.

If there are any questions, please reach out to the @elastic/observablt-ci

@reakaleek reakaleek self-assigned this Feb 17, 2024
@reakaleek reakaleek requested a review from a team February 17, 2024 18:57
@reakaleek reakaleek requested review from a team, v1v and amannocci March 11, 2024 13:57
v1v
v1v previously approved these changes Mar 11, 2024
@reakaleek reakaleek requested a review from v1v March 12, 2024 12:07
@reakaleek reakaleek merged commit 32283a4 into main Mar 12, 2024
3 checks passed
@reakaleek reakaleek deleted the gh-oblt/add-permission-block-to-workflows branch March 12, 2024 16:48
paliferka pushed a commit that referenced this pull request Apr 9, 2024
* Removed beta status message (#205)

* remove tech preview from release notes (#207)

* remove tech preview from release notes

* fix doc build errors

* github-action: use wildcards for discovering all the workflows (#208)

* github-action: cosmetic change in docs (#209)

* security: add permissions block to workflows (#210)

* security: add permissions block to workflows

* Update .github/workflows/labeler.yml

* Update .github/workflows/labeler.yml

* Add permissions

* replacing TrueTime by Kronos (more stable ntp-library) (#212)

Co-authored-by: Pavel Aliferka <[email protected]>

---------

Co-authored-by: César <[email protected]>
Co-authored-by: Brandon Morelli <[email protected]>
Co-authored-by: Victor Martinez <[email protected]>
Co-authored-by: Jan Calanog <[email protected]>
Co-authored-by: Pavel Aliferka <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants