Open
Description
Description of the false positive
An output of golang json.Marshal is apparently not at risk for unsafe quoting
Code samples or links to source code
...
learned, errMarshal := json.Marshal(guardianSpec.Learned)
...
str := fmt.Sprintf(`[{"op":"replace","path":"/spec/learned","value":%s},{"op":"replace","path":"/spec/samples","value":%d}]`, learned, guardianSpec.NumSamples)
...
URL to the alert on GitHub code scanning (optional)
knative-extensions/security-guard#236