@@ -4,6 +4,10 @@ import (
44 "context"
55 "encoding/json"
66 "fmt"
7+ "os"
8+ "path/filepath"
9+ "time"
10+
711 "github.com/murphysecurity/murphysec/cmd/murphy/internal/common"
812 "github.com/murphysecurity/murphysec/env"
913 "github.com/murphysecurity/murphysec/infra/exitcode"
@@ -15,9 +19,6 @@ import (
1519 "github.com/murphysecurity/murphysec/utils"
1620 "github.com/murphysecurity/murphysec/utils/must"
1721 "github.com/spf13/cobra"
18- "os"
19- "path/filepath"
20- "time"
2122)
2223
2324func scannerScanCmd () * cobra.Command {
@@ -76,13 +77,17 @@ func scannerScanRun(cmd *cobra.Command, args []string) {
7677 ScannerShouldEnableMavenBackupScan bool `json:"scanner_should_enable_maven_backup_scan"`
7778 ScannerShouldEnableGradleBackupScan bool `json:"scanner_should_enable_gradle_backup_scan"`
7879 ScanWarnings []scanerr.Param `json:"scan_warnings"`
80+ AutoBuildCount int `json:"auto_build_count"`
81+ AutoBuildFailedCount int `json:"auto_build_failed_count"`
7982 }
8083 w := wrapper {
8184 Modules : utils .NoNilSlice (scantask .Modules ),
8285 ComponentCodeFragment : utils .NoNilSlice (scantask .CodeFragments ),
8386 ScannerShouldEnableMavenBackupScan : env .ScannerShouldEnableMavenBackupScan ,
8487 ScannerShouldEnableGradleBackupScan : env .ScannerShouldEnableGradleBackupScan ,
8588 ScanWarnings : scanerr .GetAll (ctx ),
89+ AutoBuildCount : scantask .AutoBuildCount ,
90+ AutoBuildFailedCount : scantask .AutoBuildFailedCount ,
8691 }
8792 if env .WaitAfterScannerScan {
8893 logger .Warn ("client will wait here!" )
0 commit comments