Include project table in output of sarif-extract-scans; add commit_id to scans table

This commit is contained in:
Michael Hohn
2022-06-02 16:45:04 -07:00
committed by =Michael Hohn
parent fd55969b76
commit 741be0cfe1
3 changed files with 40 additions and 2 deletions

View File

@@ -88,6 +88,7 @@ class ScanTables:
# project: External table with project information
scans : pd.DataFrame
results : pd.DataFrame
projects : pd.DataFrame
columns_to_reindex : dict # (name -> name list) dict
def __init__(self): pass
scantabs = ScanTables()
@@ -124,6 +125,8 @@ bt.rules = tj.joins_for_rules(tgraph)
#
scantabs.results = st.joins_for_results(bt, external_info)
scantabs.scans = st.joins_for_scans(bt, external_info, scantabs)
scantabs.projects = st.joins_for_projects(bt, external_info, scantabs)
#
# Replace the remaining internal ids with snowflake ids
@@ -142,6 +145,7 @@ bt.columns_to_reindex = {
scantabs.columns_to_reindex = {
'scans': [],
'projects' : [],
'results': ['codeFlow_id'],
}