stritzinger / sscg_generator

Apache License 2.0
0 stars 0 forks source link

Iciac/parsing a valid SBOM #2

Closed IciaCarroBarallobre closed 2 weeks ago

IciaCarroBarallobre commented 2 weeks ago

@matlaj share with me an example of right SBOM and using the sscg leads to:

escript: exception error: bad map: []
  in function  maps:put/3
     called as maps:put(<<"bom-ref">>,
                        <<"ReSCALE Static Code Analysis Target">>,[])
     *** argument 3: not a map
  in call from sscg_generator_generate:generate_sscg/1 (/home/mate/repo/sscg_generator/src/sscg_generator_generate.erl, line 219)

Fixed by considering metadata > component as a not mandatory fields in the input SBOM file