Integrate support for custom types#155
Integrate support for custom types#155julianthome wants to merge 2 commits intoaquasecurity:mainfrom
Conversation
|
Julian seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
| func NewUpdater(alternativeRepoURL string, alternativeRepoBranch string, customTypes string) Updater { | ||
| if len(customTypes) > 0 { | ||
| customTypes := strings.Split(customTypes, ",") | ||
| supportedTypes = append(supportedTypes, customTypes...) |
There was a problem hiding this comment.
@julianthome Rather than introduce a new flag, I don't see why we shouldn't add the new types to the supportedTypes list? I presume that eventually this data will also be included in advisories-community.
There was a problem hiding this comment.
Thanks a lot @Brcrwilliams. Yes adding the alpine package type makes total sense as a default 👍🏼. I just modified the PR accordingly.
However, having the flag/option to pass custom types may come in handy in the future if we want to integrate advisories about package types that are not officially supported yet. Having a flag would give us some flexibility by enabling us to freely experiment with new package types without having to go through upstream PRs.
add alpine type
The changes introduced in this MR make it possible to specify custom types. This is useful for databases following that are based on the https://gitlab.com/gitlab-org/security-products/gemnasium-db format but support additional packages.