syft/internal
Alex Goodman 1aaa644007
Remove MetadataType from core package object and normalize JSON metadataType values (#1983)
* [wip]

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* distinct the package metadata functions

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* remove metadata type from package core model

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* incorporate review feedback for names

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* add RPM archive metadata and split parser helpers

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* clarify the python package metadata type

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* rename the KB metadata type

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* break hackage and composer types by use case

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* linting fix

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* fix encoding and decoding for syft-json and cyclonedx

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* bump json schema to 11

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* update cyclonedx-json snapshots

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* update cyclonedx-xml snapshots

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* update spdx-json snapshots

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* update spdx-tv snapshots

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* update syft-json snapshots

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* correct metadata type in stack yaml parser test

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* fix bom-ref redactor for cyclonedx-xml

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* add tests for legacy package metadata names

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* regenerate json schema v11

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* fix legacy HackageMetadataType reflect type value check

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* fix linting

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* packagemetadata discovery should account for type shadowing

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* fix linting

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* fix cli tests

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* bump json schema version to v12

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* update json schema to incorporate changes from main

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* add syft-json legacy config option

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* add tests around v11-v12 json decoding

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* add docs for SYFT_JSON_LEGACY

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* rename structs to be compliant with new naming scheme

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

---------

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
2023-10-30 12:12:04 -04:00
..
bus chore: update CLI to CLIO (#2001) 2023-08-29 15:52:26 -04:00
file feat: Perform case insensitive matching on Java license files (#2235) 2023-10-25 09:51:59 -04:00
licenses feat: Perform case insensitive matching on Java license files (#2235) 2023-10-25 09:51:59 -04:00
log chore: update CLI to CLIO (#2001) 2023-08-29 15:52:26 -04:00
redact chore: update CLI to CLIO (#2001) 2023-08-29 15:52:26 -04:00
spdxlicense chore: update license list to 3.22 (#2201) 2023-10-06 10:56:47 -04:00
buffered_seek_reader.go Split the sbom.Format interface by encode and decode use cases (#2186) 2023-10-25 13:43:06 +00:00
buffered_seek_reader_test.go Split the sbom.Format interface by encode and decode use cases (#2186) 2023-10-25 13:43:06 +00:00
constants.go Remove MetadataType from core package object and normalize JSON metadataType values (#1983) 2023-10-30 12:12:04 -04:00
docs.go improve doc comments 2020-11-17 12:37:13 -05:00
err_helper.go chore: clean up linting configuration (#1343) 2022-11-16 16:28:09 +00:00
input.go 510 - SBOM attestation stdout (#785) 2022-02-22 21:45:12 -05:00
mimetype_helper.go feat: add nodejs-binary package classifier (#1296) 2022-10-31 16:45:11 +00:00
mimetype_helper_test.go Migrate SPDX-JSON relationships to SBOM model (#634) 2021-11-23 14:54:17 -05:00
regex_helpers.go simplify MatchNamedCaptureGroups implementation 2021-04-12 17:11:43 -04:00
regex_helpers_test.go add tests around MatchNamedCaptureGroups + rename 2021-04-12 17:08:50 -04:00
string_helpers.go Speed up cataloging by replacing globs searching with index lookups (#1510) 2023-02-09 16:19:47 +00:00
string_helpers_test.go Speed up cataloging by replacing globs searching with index lookups (#1510) 2023-02-09 16:19:47 +00:00
stringset.go feat: update syft license concept to complex struct (#1743) 2023-05-15 16:23:39 -04:00
tprint.go add analysis coordination (with dummy analyzer) 2020-05-18 11:59:33 -04:00