-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Currently the variable LibraryMap
is used to store the list of lockfiles
Lines 134 to 144 in 77049d6
var LibraryMap = map[string]string{ | |
"package-lock.json": "node", | |
"yarn.lock": "node", | |
"Gemfile.lock": "ruby", | |
"Cargo.lock": "rust", | |
"composer.lock": "php", | |
"Pipfile.lock": "python", | |
"poetry.lock": "python", | |
"packages.lock.json": ".net", | |
"go.sum": "gomod", | |
} |
LibraryMap
is later used to create the find
command to locate the lockfiles.
Lines 594 to 596 in fe8d252
for filename := range models.LibraryMap { | |
findopt += fmt.Sprintf("-name %q -o ", "*"+filename) | |
} |
If a user wants to scan for jar
files, the user is expected to specify the list manually using the lockfiles
in the config.toml. Would it be possible to extend LibraryMap
is such a way that all the jar files are found and scanned for vulnerabilities?
Metadata
Metadata
Assignees
Labels
No labels