Skip to content

Conversation

JoostVoskuil
Copy link
Contributor

… generation

Description:

Adds support for Azure DevOps platform in SCM detection and link generation.

Checklist:

  • Does your PR pass tests?
  • Have you written new tests for your changes?
  • Have you lint your code locally prior to submission?

detect/git.go Outdated
@@ -171,6 +171,8 @@ func platformFromHost(u *url.URL) scm.Platform {
return scm.GitHubPlatform
case "gitlab.com":
return scm.GitLabPlatform
case "dev.azure.com":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there another host for ADO? I recall seeing vs-ssh.visualstudio.com in #1747 with a special path structure, idk if that's still relevant.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yups. while it should not be used anymore since depreciated. Adding visualstudio.com is easy peasy. Will do. However, there is an issue with Azure DevOps and SSH.

Remote: git@ssh.dev.azure.com:v3/foxholenl/AzureDevOps%20Projects/azure-devops-gitleaks. remote.url is empty when passed to augmentGitFinding. Will have a look but If you have any ideas @rgmz that would be great

@zricethezav
Copy link
Collaborator

Well this is nifty! I do not have an example org to test azure devops on, but I figure the community will submit a fix if the links end up being broken in some way. Thanks @JoostVoskuil for the PR and @rgmz for the review.

@zricethezav zricethezav merged commit af7d5bc into gitleaks:master Mar 31, 2025
2 checks passed
sirakav pushed a commit to sirakav/gitleaks that referenced this pull request Apr 25, 2025
…eaks#1807)

* feat: add support for Azure DevOps platform in SCM detection and link generation

* feat: add support for visualstudio.com in Azure DevOps platform detection

* feat: consolidate Azure DevOps platform detection for dev.azure.com and visualstudio.com
alayne222 pushed a commit to alayne222/gitleaks that referenced this pull request May 28, 2025
…eaks#1807)

* feat: add support for Azure DevOps platform in SCM detection and link generation

* feat: add support for visualstudio.com in Azure DevOps platform detection

* feat: consolidate Azure DevOps platform detection for dev.azure.com and visualstudio.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants