-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 #38047
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
@Mergifyio rebase |
674e19a
to
134ba84
Compare
✅ Branch has been successfully rebased |
💚 Build Succeeded
History
cc @reakaleek |
💚 Build Succeeded
History
cc @reakaleek |
💚 Build Succeeded
History
cc @reakaleek |
💚 Build Succeeded
History
cc @reakaleek |
💔 Build Failed
Failed CI StepsHistory
cc @reakaleek |
💔 Build Failed
Failed CI StepsHistory
cc @reakaleek |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
(cherry picked from commit f502623)
(cherry picked from commit f502623) # Conflicts: # .github/workflows/platform-ingest-project-board.yml # .github/workflows/post-dependabot.yml
Details
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.
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