Skip to content

Commit

Permalink
vuln check not parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
chrira committed Nov 14, 2024
1 parent a26a8f7 commit 36af895
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ci/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,11 @@ func (m *Ci) CiIntegration(
return m.Sast(dir)
}()

/*
var vulnerabilityScan = func() *dagger.File {
defer wg.Done()
return m.Vulnscan(m.Sbom(m.Build(ctx, dir)))
}()

/*
var image = func() *dagger.Container {
defer wg.Done()
return m.Build(ctx, dir)
Expand All @@ -254,9 +253,8 @@ func (m *Ci) CiIntegration(
WithWorkdir("/tmp/out").
WithFile(fmt.Sprintf("/tmp/out/lint/%s", lintOutputName), lintOutput).
WithFile(fmt.Sprintf("/tmp/out/scan/%s", securityScanName), securityScan).
//WithFile("/tmp/out/vuln/", vulnerabilityScan)
WithDirectory("/tmp/out/tests/", testReports)

vulnerabilityScan.Name(ctx)
return result_container.Directory(".")
//WithFile(fmt.Sprintf("/tmp/out/vuln/%s", vulnerabilityScanName), vulnerabilityScan)
return result_container.
Directory(".")
}

0 comments on commit 36af895

Please sign in to comment.