actions-cli icon indicating copy to clipboard operation
actions-cli copied to clipboard

Request: low permission login option

Open AndydeCleyre opened this issue 5 years ago • 2 comments

Currently the login process grants permission to "read and write all public and private repository data" -- which is more than I'm willing to give, especially considering I only want to check on public projects.

Can we get a more limited option for permissions granting?

AndydeCleyre avatar Oct 29 '20 23:10 AndydeCleyre

Last time I tried using only read permission I could not use the workflow api, can you check if only using read data works now? You can use your own token passing the —token flag to the login command

remorses avatar Nov 01 '20 16:11 remorses

Thanks!

I tried with a token with only the three basic personal read privileges, and checking status hung at "waiting job handling last commit ..." -- actually I'm not sure if that's "hanging" or as intended, as no workflow ran against that commit. So then I specified a sha that actually triggered a past run, and the status printed beautifully.

EDIT: image

This is solved for my case. Thanks for this!

AndydeCleyre avatar Nov 04 '20 22:11 AndydeCleyre