GitHub Authentication must be configured to run in the remote workspace when accessing a Remote-SSH host.
See original GitHub issueWhen opening a Remote-SSH workspace with the GitHub Actions extension configured, I receive the following error notification:
Cannot activate the 'GitHub Actions' extension because it depends on the 'GitHub Authentication' extension, which is not loaded. Would you like to reload the window to load the extension?
Reloading the window as prompted does not resolve the error.
According to the Local Extension Host, GitHub Authentication runs locally by default:
[2020-08-24 11:07:53.161] [exthost] [info] ExtensionService#_doActivateExtension vscode.github-authentication {"startup":false,"extensionId":{"value":"vscode.github-authentication","_lower":"vscode.github-authentication"},"activationEvent":"onAuthenticationRequest:github"}
[2020-08-24 11:07:53.161] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/<username>/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/github-authentication/dist/extension.js
If I force GitHub Authentication to run in the remote workspace via this settings.json
entry:
"remote.extensionKind": {
"vscode.github-authentication": [
"workspace"
],
}
GitHub Authentication now loads in the Remote Extension Host, and so does GitHub Actions:
[2020-08-24 11:12:52.188] [exthost] [info] ExtensionService#_doActivateExtension vscode.github-authentication {"startup":false,"extensionId":{"value":"vscode.github-authentication","_lower":"vscode.github-authentication"},"activationEvent":"onAuthenticationRequest:github"}
[2020-08-24 11:12:52.189] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/<username>/.vscode-server-insiders/bin/f57a418b019926b38d2e6949265c33002a8f6f6b/extensions/github-authentication/dist/extension.js
...
[2020-08-24 11:12:53.602] [exthost] [info] ExtensionService#_doActivateExtension cschleiden.vscode-github-actions {"startup":true,"extensionId":{"value":"cschleiden.vscode-github-actions","_lower":"cschleiden.vscode-github-actions"},"activationEvent":"workspaceContains:**/.github/workflows/**"}
[2020-08-24 11:12:53.602] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/<username>/.vscode-server-insiders/extensions/cschleiden.vscode-github-actions-0.8.0/dist/extension
I’m not sure of the ramifications of running GitHub Authentication as a remote extension, but it seems that GitHub Authentication doesn’t need to interact with the workspace since it runs locally by default.
Is there a way for GitHub Actions to mandate GitHub Authentication running as a workspace extension
as a dependency? Or is the remote.extensionKind
setting block referenced above the appropriate best practice and could be added to the documentation?
I think ideally, GitHub Actions would be able to access GitHub Authentication over the Remote connection, to minimize additional configuration or modification of built-in extensions.
Everything works great once the above configuration change is made, I’ve already noticed my workflow getting easier/smoother, thank you for this nifty tool!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:14
- Comments:8 (1 by maintainers)
Top GitHub Comments
Same problem running in WSL and in a devcontainer Great extension BTW!
I don’t know if a fix has been released, but this works with the latest VSCode.