mirror of
https://github.com/anchore/syft
synced 2024-11-10 06:14:16 +00:00
Add Rakudo Star binaries cataloger
Signed-off-by: George Adams <georgeadams1995@gmail.com>
This commit is contained in:
parent
fcd5ec951d
commit
051cefb9e7
4 changed files with 37 additions and 1 deletions
|
@ -392,7 +392,17 @@ func Test_Cataloger_PositiveCases(t *testing.T) {
|
|||
Metadata: metadata("helm"),
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
logicalFixture: "rakudo-star/2024.08/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
Name: "rakudo/star",
|
||||
Version: "2024.08",
|
||||
Type: "binary",
|
||||
PURL: "pkg:generic/rakudo/star@2024.08",
|
||||
Locations: locations("rakudo-2024.08"),
|
||||
Metadata: metadata("rakudo-star-binary"),
|
||||
},
|
||||
},
|
||||
{
|
||||
// note: dynamic (non-snippet) test case
|
||||
logicalFixture: "redis-server/2.8.23/linux-amd64",
|
||||
|
|
|
@ -352,6 +352,16 @@ func DefaultClassifiers() []Classifier {
|
|||
PURL: mustPURL("pkg:generic/mariadb@version"),
|
||||
CPEs: singleCPE("cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*", cpe.NVDDictionaryLookupSource),
|
||||
},
|
||||
{
|
||||
Class: "rakudo-star-binary",
|
||||
FileGlob: "**/rakudo",
|
||||
EvidenceMatcher: FileContentsVersionMatcher(
|
||||
`(?m)Rakudo Star v(?P<version>[0-9]+\.[0-9]+)`,
|
||||
),
|
||||
Package: "rakudo/star",
|
||||
PURL: mustPURL("pkg:generic/rakudo/star@version"),
|
||||
CPEs: singleCPE("cpe:2.3:a:rakudo:star:*:*:*:*:*:*:*:*"),
|
||||
},
|
||||
{
|
||||
Class: "rust-standard-library-linux",
|
||||
FileGlob: "**/libstd-????????????????.so",
|
||||
|
|
Binary file not shown.
|
@ -375,6 +375,22 @@ from-images:
|
|||
paths:
|
||||
- /opt/pypy/bin/libpypy3.9-c.so
|
||||
|
||||
- name: rakudo-star
|
||||
version: 2024.08
|
||||
images:
|
||||
- ref: rakudo-star:2024.08@sha256:71c8e816b299bbccf0d8df8c77b5aa39ad6d4495f368304ddf7b2bca888818f8
|
||||
platform: linux/amd64
|
||||
paths:
|
||||
- /usr/bin/rakudo
|
||||
|
||||
- name: rakudo-star
|
||||
version: 2024.08-alpine
|
||||
images:
|
||||
- ref: rakudo-star:2024.08-alpine@sha256:1cb1b203f0800f60f93a3221f2e02b8797094e1aed1fad3bc957fe4fc50fe9c6
|
||||
platform: linux/amd64
|
||||
paths:
|
||||
- /usr/bin/rakudo
|
||||
|
||||
- version: 2.8.23
|
||||
images:
|
||||
- ref: redis:2.8.23@sha256:e507029ca6a11b85f8628ff16d7ff73ae54582f16fd757e64431f5ca6d27a13c
|
||||
|
|
Loading…
Reference in a new issue