Skip to content

Commit 3aed1e4

Browse files
committed
fix: remove v1 suffix for ApiUrl if exists
1 parent 4d354c0 commit 3aed1e4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/analysis/analysis.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,12 @@ func (a *analysisOrchestrator) retrieveFindings(ctx context.Context, scanJobId u
413413
}
414414

415415
func (a *analysisOrchestrator) host(isHidden bool) string {
416+
// TODO
416417
apiUrl := strings.TrimRight(a.config.SnykApi(), "/")
418+
// Temporary Workaround because intellij currently adds a /v1 suffix to the EndpointAPI
419+
if strings.Contains(apiUrl, "/v1") {
420+
apiUrl = strings.Replace(apiUrl, "/v1", "", 1)
421+
}
417422
path := "rest"
418423
if isHidden {
419424
path = "hidden"

0 commit comments

Comments
 (0)