Skip to content

Commit

Permalink
feat: add classifier for chrome
Browse files Browse the repository at this point in the history
Signed-off-by: Stijn Taelemans <taelemansst@gmail.com>
  • Loading branch information
lem-onade committed Aug 19, 2024
1 parent 96ad0b7 commit 880f5db
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions syft/pkg/cataloger/binary/classifiers.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,17 @@ func DefaultClassifiers() []Classifier {
PURL: mustPURL("pkg:generic/wp-cli@version"),
CPEs: singleCPE("cpe:2.3:a:wp-cli:wp-cli:*:*:*:*:*:*:*:*"),
},
{
Class: "chrome-binary",
FileGlob: "**/chrome",
EvidenceMatcher: FileContentsVersionMatcher(
// [NUL]127.0.6533.119[NUL]Default
`\x00(?P<version>[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\x00Default`,
),
Package: "chrome",
PURL: mustPURL("pkg:generic/chrome@version"),
CPEs: singleCPE("cpe:2.3:a:google:chrome:*:*:*:*:*:*:*:*"),
},
}
}

Expand Down

0 comments on commit 880f5db

Please sign in to comment.