Guard cloud service (#6053)

* guard cloud services with credentials

* update msg

* minor
This commit is contained in:
Dogan Can Bakir 2025-02-19 13:51:10 +03:00 committed by GitHub
parent dabcce865e
commit 89c77d1e9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -526,6 +526,15 @@ Additional documentation is available at: https://docs.nuclei.sh/getting-started
}
}
// guard cloud services with credentials
if options.AITemplatePrompt != "" {
h := &pdcp.PDCPCredHandler{}
_, err := h.GetCreds()
if err != nil {
gologger.Fatal().Msg("To utilize the `-ai` flag, please configure your API key with the `-auth` flag or set the `PDCP_API_KEY` environment variable")
}
}
gologger.DefaultLogger.SetTimestamp(options.Timestamp, levels.LevelDebug)
if options.VerboseVerbose {