diff --git a/README.md b/README.md index 8451864d..face5a82 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ Note: development (and the release process) is done with Go `1.16` 1. Clone Project ``` -git clone git@github.com:armosec/kubescape.git kubescape && cd "$_" +git clone https://github.com/armosec/kubescape.git kubescape && cd "$_" ``` 2. Build @@ -144,7 +144,7 @@ go mod tidy && go build -o kubescape . 1. Clone Project ``` -git clone git@github.com:armosec/kubescape.git kubescape && cd "$_" +git clone https://github.com/armosec/kubescape.git kubescape && cd "$_" ``` 2. Build diff --git a/cmd/framework.go b/cmd/framework.go index 1487e0fa..e247e183 100644 --- a/cmd/framework.go +++ b/cmd/framework.go @@ -23,7 +23,7 @@ import ( ) var scanInfo cautils.ScanInfo -var supportedFrameworks = []string{"nsa"} +var supportedFrameworks = []string{"nsa", "mitre"} type CLIHandler struct { policyHandler *policyhandler.PolicyHandler @@ -39,7 +39,7 @@ var frameworkCmd = &cobra.Command{ if len(args) < 1 && !(cmd.Flags().Lookup("use-from").Changed) { return fmt.Errorf("requires at least one argument") } else if len(args) > 0 { - if !isValidFramework(args[0]) { + if !isValidFramework(strings.ToLower(args[0])) { return fmt.Errorf(fmt.Sprintf("supported frameworks: %s", strings.Join(supportedFrameworks, ", "))) } } @@ -50,7 +50,7 @@ var frameworkCmd = &cobra.Command{ scanInfo.PolicyIdentifier.Kind = opapolicy.KindFramework if !(cmd.Flags().Lookup("use-from").Changed) { - scanInfo.PolicyIdentifier.Name = args[0] + scanInfo.PolicyIdentifier.Name = strings.ToLower(args[0]) } if len(args) > 0 { if len(args[1:]) == 0 || args[1] != "-" {