question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GitHub Authentication must be configured to run in the remote workspace when accessing a Remote-SSH host.

See original GitHub issue

When 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:closed
  • Created 3 years ago
  • Reactions:14
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
benc-ukcommented, Dec 3, 2020

Same problem running in WSL and in a devcontainer Great extension BTW!

0reactions
smorimotocommented, Apr 1, 2021

I don’t know if a fix has been released, but this works with the latest VSCode.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remote Development Tips and Tricks - Visual Studio Code
To set up SSH key based authentication for your remote host. ... To access your config file, run Remote-SSH: Open Configuration File... in...
Read more >
SSH Remote fails to connect · Issue #132519 · microsoft/vscode
Connect to a SSH Remote Host. Attempts to fix the issue: Removing the vscode server from the SSH Host manually; Rebooting the SSH...
Read more >
Cannot connect to remote SSH after upgrading VS Code to 1.43
I originally configured Remote - SSH to use Windows' SSH client, but from what I can see in version 0.50.0 the local server...
Read more >
Remote SSH password keeps asking password (Installation ...
Issue Type: Bug Connect to SSH server Password prompt shows up Type password and Enter VSCODE keeps asking password, i.e., repeating steps 2 ......
Read more >
remote-ssh: Add possibility to invoke a login shell #1671
profile and I can run echo $DOTPROFILE in the vscode terminal and see that it is "yes". Hi @roblourens, I do not have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found