Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

feat: add windows registry sbom analyzer #1196

Merged
merged 12 commits into from
Feb 9, 2024
3 changes: 3 additions & 0 deletions .families.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ sbom:
analyzers_list:
- "syft"
- "gomod"
# - "windows"
inputs:
- input: "node:slim"
input_type: "image"
# - input: "/mnt"
# input_type: "rootfs"
# - input: "nginx:1.10"
# input_type: "image"
# merge_with:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ These tools include:
- SBOM Generation and Analysis
- [Syft](https://github.com/anchore/syft)
- [Trivy](https://github.com/aquasecurity/trivy)
- [Windows Registry](cli/analyzer/windows)
- Vulnerability detection
- [Grype](https://github.com/anchore/grype)
- [Trivy](https://github.com/aquasecurity/trivy)
Expand Down
2 changes: 1 addition & 1 deletion api/types/families.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (c *SBOMConfig) GetAnalyzersList() []string {
return *c.Analyzers
}

return []string{"syft", "trivy"}
return []string{"syft", "trivy", "windows"}
}

func (c *RootkitsConfig) IsEnabled() bool {
Expand Down
2 changes: 2 additions & 0 deletions cli/analyzer/job/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package job
import (
"github.com/openclarity/vmclarity/cli/analyzer/syft"
"github.com/openclarity/vmclarity/cli/analyzer/trivy"
"github.com/openclarity/vmclarity/cli/analyzer/windows"
"github.com/openclarity/vmclarity/cli/job_manager"
)

Expand All @@ -26,4 +27,5 @@ var Factory = job_manager.NewJobFactory()
func init() {
Factory.Register(trivy.AnalyzerName, trivy.New)
Factory.Register(syft.AnalyzerName, syft.New)
Factory.Register(windows.AnalyzerName, windows.New)
}
Loading
Loading