-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
continue to implement recursive scan
- Loading branch information
Showing
5 changed files
with
229 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package utils | ||
|
||
import ( | ||
"github.com/jfrog/jfrog-cli-core/v2/utils/coreutils" | ||
"github.com/jfrog/jfrog-client-go/xray/services" | ||
"github.com/owenrumney/go-sarif/v2/sarif" | ||
) | ||
|
||
type Results struct { | ||
ScaResults []ScaScanResult | ||
XrayVersion string | ||
ScaError error | ||
|
||
IsMultipleRootProject bool // TODO: remove this | ||
ExtendedScanResults *ExtendedScanResults | ||
JasError error | ||
} | ||
|
||
func NewAuditResults() *Results { | ||
return &Results{ExtendedScanResults: &ExtendedScanResults{}} | ||
} | ||
|
||
type ScaScanResult struct { | ||
Technology coreutils.Technology | ||
WorkingDirectory string | ||
Descriptors []string | ||
XrayResults []services.ScanResponse | ||
|
||
// IsMultipleRootProject bool | ||
} | ||
|
||
type ExtendedScanResults struct { | ||
XrayResults []services.ScanResponse // TODO: remove this | ||
XrayVersion string // TODO: remove this | ||
ScannedTechnologies []coreutils.Technology // TODO: remove this | ||
|
||
ApplicabilityScanResults []*sarif.Run | ||
SecretsScanResults []*sarif.Run | ||
IacScanResults []*sarif.Run | ||
SastScanResults []*sarif.Run | ||
EntitledForJas bool | ||
} | ||
|
||
func (e *ExtendedScanResults) getXrayScanResults() []services.ScanResponse { | ||
return e.XrayResults | ||
} |