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.
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
withinsnyk-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 includedsnyk-request-manager
, which on it's own included aaxios
dependency (also direct here). That dependency is now relying on ESM and pkg does not support it. Note thatpkg
is also deprecated/archived in favour of SEA.