Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

GHE.com support broken for SSH/Git remote URLs

Open
#502 1 comment 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
git, typescript, vscode
Domain
devtools

Research direction

The failure is identified in src/git/repository.ts at line 81; reproduce it with the documented ghe.com SSH remote and enterprise settings, then inspect how that value is parsed. Done means the extension initializes successfully for the SSH/Git remote without the Invalid URL error.

Written by the indexing model from the issue text.

Description

bug

Describe the bug

It appears that the implementation of https://github.com/github/vscode-github-actions/issues/457 through https://github.com/github/vscode-github-actions/pull/458 was broken by https://github.com/github/vscode-github-actions/pull/469 if you are not using http remote urls and instead use the SSH/Git remote urls, e.g. <company>@<company>.ghe.com:org/repo.git.

Log output:

Activating GitHub Actions extension...
Error getting GitHub context
Invalid URL
TypeError: Invalid URL
	at new URL (node:internal/url:818:25)
	at /home/gustav/.vscode-server/extensions/github.vscode-github-actions-0.27.2/dist/extension-node.js:1:1158030
	at async Promise.all (index 0)
	at async /home/gustav/.vscode-server/extensions/github.vscode-github-actions-0.27.2/dist/extension-node.js:1:1157669
	at async De (/home/gustav/.vscode-server/extensions/github.vscode-github-actions-0.27.2/dist/extension-node.js:1:1157518)
	at async os (/home/gustav/.vscode-server/extensions/github.vscode-github-actions-0.27.2/dist/extension-node.js:1:1339675)
	at async db.n (file:///home/gustav/.vscode-server/bin/488a1f239235055e34e673291fb8d8c810886f81/out/vs/workbench/api/node/extensionHostProcess.js:112:13386)
	at async db.m (file:///home/gustav/.vscode-server/bin/488a1f239235055e34e673291fb8d8c810886f81/out/vs/workbench/api/node/extensionHostProcess.js:112:13349)
	at async db.l (file:///home/gustav/.vscode-server/bin/488a1f239235055e34e673291fb8d8c810886f81/out/vs/workbench/api/node/extensionHostProcess.js:112:12805)

To Reproduce
Steps to reproduce the behavior:

  1. Set up a repo on a ghe.com instance. Add VS Code settings as follow:
    {
       "github-enterprise.uri": "https://<company>.ghe.com",
       "github-actions.use-enterprise": true
     }
    
  2. Check out the repository using the git/ssh remote:
    git clone <company>@<company>.ghe.com:org/repo.git
    
  3. The Github Actions extension will fail to initialize due to URL failing to parse <company>@<company>.ghe.com:org/repo.git as a URL which then throws an error which is not handled.

Screenshots

Extension Version
v0.27.2

Additional context

Dominant language
TypeScript
Stars
661
Forks
214
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/vscode-github-actions

All issues in github/vscode-github-actions

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.