izar / pytm

A Pythonic framework for threat modeling
Other
861 stars 161 forks source link

Colormap #229

Closed izar closed 4 months ago

izar commented 7 months ago

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

izar commented 6 months ago

ready for re-review

izar commented 6 months ago

good catch.

colesmj commented 5 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 5 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.