From 1bd40d2f60c902e13b7ba0ed683a3dc37afa11bc Mon Sep 17 00:00:00 2001 From: almeidabbm Date: Thu, 30 Nov 2023 09:09:51 +0000 Subject: [PATCH] fix(docs): improve docs --- README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d1700c6..cee92b7 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,9 @@ npm install -g @slauth.io/slauth 1. Set the `OPENAI_API_KEY` environment variable: `export OPENAI_API_KEY=` 2. Run `slauth --help` to see available commands -### Examples +### Commands -#### Scan command +#### Scan The scan command will look for any calls of your Cloud Provider `sdk` in your git repository and generate the necessary permissions for it. @@ -97,7 +97,7 @@ Detected Policies: - `-m, --openai-model ` select the openai model to use (choices: "gpt-3.5-turbo-16k", "gpt-4-32k") - `-o, --output-file ` write generated policies to a file instead of stdout -### Selecting which OpenAI Model to use +#### Selecting which OpenAI Model to use By default `slauth` will use `gpt-4-32k` as it provides the best results. You can still choose to use other models to scan you repo, specially if cost is a concern: @@ -109,9 +109,16 @@ slauth scan -p aws -m gpt-3.5-turbo-16k ./path/to/my/repository Available models: -- `gpt-3.5-turbo-16k` +- `gpt-3.5-turbo-16k` (results with this model might be incomplete) - `gpt-4-32k` (default) +#### Example repos to test with + +In case you want to give the CLI a quick test you can fork the following repositories. + +- aws-sdk: +- google-cloud sdk: + ### Running in CI/CD Slauth being a CLI, it can be easily integrated in your CI/CD pipelines.