github-actions: clarify workflows permissions, set least possible privilege#9928
Closed
diogoteles08 wants to merge 2 commits intocurl:masterfrom
diogoteles08:master
Closed
github-actions: clarify workflows permissions, set least possible privilege#9928diogoteles08 wants to merge 2 commits intocurl:masterfrom diogoteles08:master
diogoteles08 wants to merge 2 commits intocurl:masterfrom
diogoteles08:master
Conversation
…vilege Set top-level permissions to None on all workflows, setting per-job permissions. This avoids that new jobs inherit unwanted permissions. Discussion: https://curl.se/mail/lib-2022-11/0028.html Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>
mback2k
reviewed
Nov 17, 2022
Exchange order of two instructions in a workflow to keep the same sequence as in the other workflows. Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>
Member
|
@cmeister2 @mback2k any objections to me merging this ? |
Member
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Set top-level permissions to None on all workflows and then set per-job permissions, giving only the necessary ones. This avoids that new jobs inherit unwanted privileges.
Previously most of the workflows did not have written permissions, so their permissions were depending on the permission set as default on the Github repo settings
Discussion: https://curl.se/mail/lib-2022-11/0028.html