File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ func (m DependencyGraphManifest) Ecosystem() string {
51
51
return "yarn" // JavaScript
52
52
case strings .HasSuffix (m .Filename , "pnpm-lock.yaml" ):
53
53
return "pnpm" // JavaScript
54
+ case strings .HasSuffix (m .Filename , "bun.lock" ):
55
+ return "bun" // JavaScript
54
56
case strings .HasSuffix (m .Filename , "requirements.txt" ),
55
57
strings .HasSuffix (m .Filename , "requirements-dev.txt" ),
56
58
strings .HasSuffix (m .Filename , "setup.py" ):
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ func ghEcosystemToPurlType(t string) string {
126
126
return packageurl .TypeGolang
127
127
case "pom" , "gradle" :
128
128
return packageurl .TypeMaven
129
- case "npm" , "yarn" , "pnpm" :
129
+ case "npm" , "yarn" , "pnpm" , "bun" :
130
130
return packageurl .TypeNPM
131
131
case "nuget" :
132
132
return packageurl .TypeNuget
Original file line number Diff line number Diff line change 9
9
_ "github.com/aquasecurity/trivy/pkg/fanal/analyzer/language/golang/binary"
10
10
_ "github.com/aquasecurity/trivy/pkg/fanal/analyzer/language/golang/mod"
11
11
_ "github.com/aquasecurity/trivy/pkg/fanal/analyzer/language/java/pom"
12
+ _ "github.com/aquasecurity/trivy/pkg/fanal/analyzer/language/nodejs/bun"
12
13
_ "github.com/aquasecurity/trivy/pkg/fanal/analyzer/language/nodejs/npm"
13
14
_ "github.com/aquasecurity/trivy/pkg/fanal/analyzer/language/nodejs/pnpm"
14
15
_ "github.com/aquasecurity/trivy/pkg/fanal/analyzer/language/nodejs/yarn"
You can’t perform that action at this time.
0 commit comments