From 515614e8af2252f6835ba552e3e306007fb0e728 Mon Sep 17 00:00:00 2001 From: Xueqin Cui Date: Tue, 21 Jan 2025 16:10:46 +1100 Subject: [PATCH] feat: add more lockfile extractors --- pkg/osvscanner/internal/scanners/lockfile.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/osvscanner/internal/scanners/lockfile.go b/pkg/osvscanner/internal/scanners/lockfile.go index 7848ac9a6a..08ebc15d81 100644 --- a/pkg/osvscanner/internal/scanners/lockfile.go +++ b/pkg/osvscanner/internal/scanners/lockfile.go @@ -35,10 +35,15 @@ var lockfileExtractorMapping = map[string]string{ "composer.lock": "php/composerlock", "mix.lock": "erlang/mixlock", "renv.lock": "r/renvlock", + "deps.json": "dotnet/depsjson", "packages.lock.json": "dotnet/packageslockjson", "conan.lock": "cpp/conanlock", "go.mod": "go/gomod", "Gemfile.lock": "ruby/gemfilelock", + "cabal.project.freeze": "haskell/cabal", + "stack.yaml.lock": "haskell/stacklock", + "Package.resolved": "swift/packageresolved", + "Podfile.lock": "swift/podfilelock", } // ScanSingleFile is similar to ScanSingleFileWithMapping, just without supporting the :/path/to/lockfile prefix identifier