Repository navigation
build: limit workflow gh token permissions - #48237
Conversation
eda799e to
808cd65
Compare
| permissions: | ||
| contents: read |
There was a problem hiding this comment.
Do we need to push this down into the job permissions, or do we think it's unnecessary for this action?
There was a problem hiding this comment.
Defining per-job is IMO good practice, it prevents leaky default permissions. i.e. the top-level permissions should always be {} and each job should ask for more specifically
dsanders11
left a comment
There was a problem hiding this comment.
Non-blocking comments still stand, but I'm clearing the request changes.
808cd65 to
7d6c4d2
Compare
|
No Release Notes |
|
I have automatically backported this PR to "40-x-y", please check out #48966 |
|
I have automatically backported this PR to "36-x-y", please check out #48967 |
|
I have automatically backported this PR to "38-x-y", please check out #48968 |
|
I have automatically backported this PR to "39-x-y", please check out #48969 |
|
I have automatically backported this PR to "37-x-y", please check out #48970 |
No real issue here, this is just good practice limiting the scope of these tokens. In general we should be doing
permissions: {}at the root of the workflow and then each job specifies it's permission requirements individually.Notes: none