Skip to content

Commit 5370be8

Browse files
authored
fix: remove v1 suffix for ApiUrl if exists [IDE-353] (#51)
2 parents 4d354c0 + 382f772 commit 5370be8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/analysis/analysis.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,8 @@ func (a *analysisOrchestrator) retrieveFindings(ctx context.Context, scanJobId u
414414

415415
func (a *analysisOrchestrator) host(isHidden bool) string {
416416
apiUrl := strings.TrimRight(a.config.SnykApi(), "/")
417+
// Temporary Workaround because intellij currently adds a /v1 suffix to the EndpointAPI
418+
apiUrl = strings.Replace(apiUrl, "/v1", "", 1)
417419
path := "rest"
418420
if isHidden {
419421
path = "hidden"

0 commit comments

Comments
 (0)