Skip to content

Commit

Permalink
chore: update syft source provider
Browse files Browse the repository at this point in the history
  • Loading branch information
kzantow committed Feb 23, 2024
1 parent 3ad57ac commit cedabe5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions grant/case.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,12 +342,7 @@ func grantLicenseFromClassifierResults(r results.LicenseTypes) []License {
// TODO: is the default syft config good enough here?
// we definitely need at least all the non default license magic turned on
func generateSyftSBOM(path string) (sb sbom.SBOM, err error) {
detection, err := source.Detect(path, source.DefaultDetectConfig())
if err != nil {
return sb, err
}

src, err := detection.NewSource(source.DefaultDetectionSourceConfig())
src, err := syft.GetSource(context.Background(), path, syft.DefaultGetSourceConfig())

Check failure on line 345 in grant/case.go

View workflow job for this annotation

GitHub Actions / Validations

undefined: syft.GetSource

Check failure on line 345 in grant/case.go

View workflow job for this annotation

GitHub Actions / Validations

undefined: syft.DefaultGetSourceConfig
if err != nil {
return sb, err
}
Expand Down

0 comments on commit cedabe5

Please sign in to comment.