Skip to content

Commit

Permalink
updated test acc to dependencies updates
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Kumar Sahu <vivekkumarsahu650@gmail.com>
  • Loading branch information
viveksahu26 committed Sep 12, 2024
1 parent 8c1b3db commit 567737e
Show file tree
Hide file tree
Showing 11 changed files with 326 additions and 408 deletions.
4 changes: 2 additions & 2 deletions pkg/compliance/bsi.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,12 @@ func bsiBuildPhase(doc sbom.Document) *record {
func bsiSbomDepth(doc sbom.Document) *record {
result, score := "", 0.0
// for doc.Components()
totalDependencies := doc.PrimaryComp().Dependencies()
totalDependencies := doc.PrimaryComp().GetTotalNoOfDependencies()

if totalDependencies > 0 {
score = 10.0
}
result = fmt.Sprintf("doc has %d depedencies", totalDependencies)
result = fmt.Sprintf("doc has %d dependencies", totalDependencies)

return newRecordStmt(SBOM_DEPTH, "doc", result, score)
}
Expand Down
Loading

0 comments on commit 567737e

Please sign in to comment.