vscode-github-actions icon indicating copy to clipboard operation
vscode-github-actions copied to clipboard

Option to disable access to GitHub and its prompt

Open heavywatal opened this issue 2 years ago • 4 comments

Some users (including me) may want to use this extension just for yaml editing, not for monitoring workflow status. It would be nice if frequent prompt and access to GitHub could be disabled. Currently, the prompt appears every time a project with GitHub origin is opened and every time an action yaml file tab gets focused.

heavywatal avatar Jul 03 '22 23:07 heavywatal

Interesting 🤔 I hadn't considered this need. Some of the value comes from the connection to GitHub, like the validation of with parameters when using third-party actions, secret names, and runner labels. That being said, it might be possible to make that optional, or at least to prompt only once.

cschleiden avatar Jul 25 '22 17:07 cschleiden

I, too, would like this feature. I cannot give this extension full access to my account and organizations.

sparr avatar Aug 23 '22 21:08 sparr

As mentioned above, the only thing that could be done is to provide only the static YAML editing features without displaying workflows and runs and dynamic auto-completion as suggested in #167 [from #181]

I think the language server could still provide more than just static editing. Being able to autocomplete the ids of steps and jobs in the current workflow or other workflows in the same repo, which can come from files like any other language server does it, would be very helpful.

sparr avatar Aug 23 '22 21:08 sparr

+1 here as I wanted this for yaml validation and github login would require work org to approve the app access and I want to avoid that as its not needed... Just adding another use case to the issue

ayoh1 avatar Oct 10 '22 16:10 ayoh1

Currently, the prompt appears every time a project with GitHub origin is opened and every time an action yaml file tab gets focused

A precision: the prompt appears more frequently than this. With a yml file open, it opens all the time, repeatedly, every time I hit a key or click on a piece of text. Makes the extension unusable.

ronjouch avatar Nov 30 '22 19:11 ronjouch

We have updated the prompt and sign-in flow. Please try again if that helps with what you've been experiencing.

cschleiden avatar Mar 22 '23 18:03 cschleiden

Thank you very much. Dismissing the prompt seems to work now, then syntax highlighting and language service functions are operational. I'll search and open another issue for a remaining lesser concern.

sparr avatar Mar 22 '23 19:03 sparr

Thank you, @cschleiden, it works great. Aside from the one sparr reported in 224, a minor problem I had was to find a way to revoke authentication and to get the prompt again after revoking. My solution:

to revoke authentication : Go to GitHub Settings > Integrations / Applications > Authorized OAuth Apps

to get prompted again to authenticate : Try some random GitHub operations on VSCode. (Sorry I don't remember which exactly was the trigger)

heavywatal avatar Mar 23 '23 06:03 heavywatal