mirror of
https://github.com/securego/gosec.git
synced 2025-09-16 09:06:19 +02:00
Update the AI provider API key value when provided as an argument
Change-Id: I9658ff0bc37941d6767144b7df49470452f8f591 Signed-off-by: Cosmin Cojocar <ccojocar@google.com>
This commit is contained in:
committed by
Cosmin Cojocar
parent
65d2d9f011
commit
60279264be
@@ -505,7 +505,7 @@ func main() {
|
||||
|
||||
// Call AI request to solve the issues
|
||||
aiAPIKey := os.Getenv(aiAPIKeyEnv)
|
||||
if aiAPIKeyEnv == "" {
|
||||
if aiAPIKey == "" {
|
||||
aiAPIKey = *flagAiAPIKey
|
||||
}
|
||||
if *flagAiAPIProvider != "" && aiAPIKey != "" {
|
||||
|
Reference in New Issue
Block a user