OWASP / pytm

A Pythonic framework for threat modeling
Other
907 stars 169 forks source link

Colormap #229

Closed izar closed 7 months ago

izar commented 9 months ago

Added --colormap as a companion to --dfd: paints elements green/yellow/red according to the severity of their findings.

izar commented 9 months ago

ready for re-review

izar commented 8 months ago

good catch.

colesmj commented 8 months ago

The output.json still shows only 0 severity outcomes. I see your test code should generate High severity, did the output file not get updated?

izar commented 8 months ago

The colormap testing is looking straight into the generated dot file, not on output.json - check dfd_colormap.dot, you'll see it has different colors compared with dfd.dot, those represent the severities.