Skip to content

Commit

Permalink
Generate missing FILE evidence in ada extraction (#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
glguy committed Aug 31, 2023
1 parent 46c8bde commit 5eaa4d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ada/run_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,11 @@ def analyze_structure(unit: lal.AnalysisUnit) -> None:

for package, components in analysis_output.items():
filename = package.p_relative_name.unit.filename.rsplit('/', 1)[-1]
Evidence.Add.FILE.FILE(
fileFormat_identifier="Ada",
filename=filename,
identifier=filename,
)
Evidence.Add.SOFTWARE.SWCOMPONENT(
identifier=get_node_identifier(package),
title=escape(package.doc_name),
Expand Down

0 comments on commit 5eaa4d5

Please sign in to comment.