microsoft / sarif-vscode-extension

SARIF Microsoft Visual Studio Code extension
MIT License
107 stars 48 forks source link

Improve handling of multiple github remotes for a repository #539

Open jsoref opened 7 months ago

jsoref commented 7 months ago

458 added the ability to scan some github repository for sarif state. Unfortunately I can't figure out what it's doing when there are multiple github remotes for a repository (which is my default work-mode -- I typically have 3: origin, submit, scratch).

Current behavior

  1. Open a git repository with a number of github remotes: image
  2. Clicking Connect yields: image
  3. Using SARIF: Show Panel image

Expected behavior

Notes

I've tried playing with git remote rename, git remote rm and friends, and that hasn't really lead to any particularly obvious improvements.

I've tried gh repo set-default and that too doesn't seem to help.

With a lot of black magic, checking out a branch whose name matches a name in github (but whose state is very stale), then resetting to where I was before I did the checkout, I can sometimes get sarif to properly load in state, but it's really incredibly frustrating and shouldn't be necessary.