Skip to content

Commit

Permalink
fix: use urls from official doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Séverine Bonnechère committed Dec 30, 2024
1 parent 1916169 commit 76b5b45
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/lib/ggshield-configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,15 @@ export class GGShieldConfiguration {
allowSelfSigned: boolean = false
) {
this.ggshieldPath = ggshieldPath;
this.apiUrl = apiUrl;
this.allowSelfSigned = allowSelfSigned;
if (apiUrl === "https://api.gitguardian.com/v1") {
this.apiUrl = "https://dashboard.gitguardian.com/v1";
} else if (apiUrl === "https://api.eu1.gitguardian.com/v1") {
this.apiUrl = "https://dashboard.eu1.gitguardian.com/v1";
}
else {
this.apiUrl = apiUrl;
}
}
}

0 comments on commit 76b5b45

Please sign in to comment.