Skip to content

Commit

Permalink
Merge pull request #60 from Privado-Inc/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
khemrajrathore authored Dec 11, 2023
2 parents 5468ccc + 830c2e0 commit ad968e2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func defineScanFlags(cmd *cobra.Command) {
scanCmd.Flags().Bool("generate-audit-report", false, "If specified, audit report will be generated")
scanCmd.Flags().Bool("enable-audit-semantic", false, "Flag to enable semantic filtering in audit report")
scanCmd.Flags().Bool("enable-lambda-flows", false, "Flag to enable lambda flows")
scanCmd.Flags().Bool("monolith", false, "Flag to divide a monolith repo into subProjects")
}

func scan(cmd *cobra.Command, args []string) {
Expand All @@ -101,6 +102,7 @@ func scan(cmd *cobra.Command, args []string) {
generateAuditReport, _ := cmd.Flags().GetBool("generate-audit-report")
enableAuditSemantic, _ := cmd.Flags().GetBool("enable-audit-semantic")
enableLambdaFlows, _ := cmd.Flags().GetBool("enable-lambda-flows")
isMonolith, _ := cmd.Flags().GetBool("monolith")

externalRules, _ := cmd.Flags().GetString("config")
if externalRules != "" {
Expand Down Expand Up @@ -219,6 +221,10 @@ func scan(cmd *cobra.Command, args []string) {
commandArgs = append(commandArgs, "-elf")
}

if isMonolith {
commandArgs = append(commandArgs, "--monolith")
}

// run image with options
err = docker.RunImage(
docker.OptionWithLatestImage(false), // because we already pull the image for access-key (with pullImage parameter)
Expand Down

0 comments on commit ad968e2

Please sign in to comment.