snyk / snyk-nuget-plugin

Basic Snyk CLI plugin for .NET support.
Other
7 stars 14 forks source link

feat: [OSM-347] Next `csharp` bundle attempt #178

Closed dotkas closed 1 year ago

dotkas commented 1 year ago

Ok, my previous attempt was not really thought through.

Using this package as a CLI Plugin makes the plugin not know where it exists during runtime, causing it to not to be able to find the .cs files in its own dist folder. Should have thought about it.

Second best solution is keeping C# code in memory and writing it to a temporary folder. We already do this heavily in the tests, so it is a trivial thing to change.

Not super satisfied with the outcome, but I did not see a better way. There are some Github projects to execute .NET code from Typescript, but it's a hassle.

In short:

snyksec commented 1 year ago

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

The release is available on:

Your semantic-release bot :package::rocket: