Azure / durabletask

Durable Task Framework allows users to write long running persistent workflows in C# using the async/await capabilities.
Apache License 2.0
1.53k stars 296 forks source link

Remove redundant Newtonsoft.JSON dependency across backends #1026

Closed davidmrdavid closed 8 months ago

davidmrdavid commented 10 months ago

Follow up to: https://github.com/Azure/durabletask/pull/1023

As of recently, building the DTFx project failed with errors of the following kind:

"Warning as Error: Package has a known high severity vulnerability" and it points to this advisory: "

The warnings were for:

Newtonsoft.Json < 13.0.1, which linked to: https://github.com/advisories/GHSA-5crp-9r3c-p9vr

This issue was addressed (by supressing the warning) in DTFx.Core and DTFx.AzureStorage here: https://github.com/Azure/durabletask/pull/1023. Suppressing the warning was chosen because it prevents breaking changes and the advisory is only triggered when customers have immensely nested objects, something they have direct control over.

In this PR, we address it across other backends by removing Newtonsoft.Json as a direct dependency of these backends. Moving forward, we'd obtain this dependency transitively from DTFx.Core, which reduces our dependency management burden.

davidmrdavid commented 10 months ago

@shankarsama: is this change ok with you for DTFx.AzureServiceFabric?

davidmrdavid commented 8 months ago

@shankarsama and I sync'ed offline, got approval to merge.