snyk / policy

Snyk policy parser and matching logic
Other
8 stars 8 forks source link

chore: type filter to reflect mutation #126

Closed gclapperton closed 1 year ago

gclapperton commented 1 year ago

What does this PR do?

The vulnerability object is mutated when filtering, so this PR update the vulns type and the return type to take this into account.

After reviewing policy lib usage in the Snyk CLI, isUpgradable, upgradePath, isPatchable and patches have also been made optional

team-narwhal-user commented 1 year ago

:tada: This PR is included in version 2.0.8 :tada:

The release is available on:

Your semantic-release bot :package::rocket: