You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@asos/snyker could feasibly still update the .snyk policy file by manually crafting the required yaml instead of relying directly on snyk ignore --id=<VULNERABILITY_ID> to handle it.
This could either be in place of using the Snyk CLI or as a fallback when such errors occur.
Issue
Details
There are setups with snyk that prevent CLI based ignores, see below:
When this is the case
@asos/snyker
will fail to add the ignores to the.snyk
policy file.Given the ignores have a known format:
@asos/snyker
could feasibly still update the.snyk
policy file by manually crafting the required yaml instead of relying directly onsnyk ignore --id=<VULNERABILITY_ID>
to handle it.This could either be in place of using the Snyk CLI or as a fallback when such errors occur.
Pertinent code: https://github.com/ASOS/snyker/blob/main/src/index.js#L405-L407
The text was updated successfully, but these errors were encountered: