snyk-tech-services / snyk-delta

Other
19 stars 21 forks source link

Adds targetReference as a parameter. #182

Closed sebsnyk closed 1 month ago

sebsnyk commented 1 month ago

What this does

Adds support for specifying the target reference of a project. For customers with multiple monitored projects (for example, on different branches), the usage of --target-reference within the Snyk CLI will create different projects with separate target references.

Using a new flag --targetReference within snyk-delta, users can now link their delta scan to it.

~~ To get things going, this PR also adjusted the Node JS version to 22 (latest) and switches the binary creation to SEA, which is the new standard to create standalone binaries in NodeJS. There is no windows build at the moment, but it is not difficult to achieve. All of this was needed because pkg is not compatible with the entire package tree, which included snyk-request-manager, which on it's own included a axios dependency (also direct here). That dependency is now relying on ESM and pkg does not support it. Note that pkg is also deprecated/archived in favour of SEA.

aarlaud commented 1 month ago

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

The release is available on:

Your semantic-release bot :package::rocket: