You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -279,7 +279,8 @@ gosec can suggest fixes based on AI recommendation. It will call an AI API to re
279
279
280
280
You can enable this feature by providing the following command line arguments:
281
281
-`ai-api-provider`: the name of the AI API provider, currently only `gemini`is supported.
282
-
-`ai-api-key`: the key to access the AI API, For gemini, you can create an API key following [these instructions](https://ai.google.dev/gemini-api/docs/api-key).
282
+
-`ai-api-key` or set the environment variable `GOSEC_AI_API_KEY`: the key to access the AI API,
283
+
For gemini, you can create an API key following [these instructions](https://ai.google.dev/gemini-api/docs/api-key).
283
284
-`ai-endpoint`: the endpoint of the AI provider, this is optional argument.
0 commit comments