Repository navigation
feat: check job permissions and warn if not enough - #1410
Conversation
|
@inimaz can you confirm that this works through some minimal testing? FYI, to test:
|
Nice! I didn't know this was possible, thanks on it! |
jorgepiloto
left a comment
There was a problem hiding this comment.
Thanks for adding this, @inigoimaz. Is it something we can expand to other actions?
We can indeed @jorgepiloto ! Shall I do it in a separate PR or in this one? Both approaches are fine by me. |
Let's do it in this same pull-request if that works for you, @inigoimaz |
Sounds good @jorgepiloto ! Done here --> c1cae88. I did not add it to the ones deprecated (e.g. |
4cb32f2 to
89c4b3f
Compare
jorgepiloto
left a comment
There was a problem hiding this comment.
Thanks for adding this. Approved.
Co-authored-by: Copilot <[email protected]>
10287f3 to
75f2a86
Compare
Co-authored-by: Iñigo Imaz <[email protected]> Co-authored-by: pyansys-ci-bot <[email protected]> Co-authored-by: Iñigo Imaz <[email protected]> Co-authored-by: Jorge Martinez <[email protected]> Co-authored-by: Copilot <[email protected]>
Related to #1391.
probefunction tests the token against an action in the API that uses the given permission.writepermissions not checked for now... Since one has to find a harmless action to run per each permission. We can think of something in future PRs if needed.doc-deploy-devas an example.