Skip to content

Commit 6027926

Browse files
committed
Update the AI provider API key value when provided as an argument
Change-Id: I9658ff0bc37941d6767144b7df49470452f8f591 Signed-off-by: Cosmin Cojocar <[email protected]>
1 parent 65d2d9f commit 6027926

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/gosec/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ func main() {
505505

506506
// Call AI request to solve the issues
507507
aiAPIKey := os.Getenv(aiAPIKeyEnv)
508-
if aiAPIKeyEnv == "" {
508+
if aiAPIKey == "" {
509509
aiAPIKey = *flagAiAPIKey
510510
}
511511
if *flagAiAPIProvider != "" && aiAPIKey != "" {

0 commit comments

Comments
 (0)