mirror of
https://github.com/hohn/sarif-cli.git
synced 2025-12-16 17:23:03 +01:00
Make project_name unique by adding automationDetails to it
This commit is contained in:
committed by
=Michael Hohn
parent
ebeaced0f4
commit
3dfb297612
@@ -89,13 +89,14 @@ def joins_for_projects(basetables, external_info):
|
|||||||
# if the sarif does have versionControlProvenance
|
# if the sarif does have versionControlProvenance
|
||||||
if "repositoryUri" in b.project:
|
if "repositoryUri" in b.project:
|
||||||
repoUri = b.project.repositoryUri[0]
|
repoUri = b.project.repositoryUri[0]
|
||||||
|
project_name = b.project.repositoryUri[0] + "-" + extra
|
||||||
e.project_id = hash.hash_unique((repoUri+extra).encode())
|
e.project_id = hash.hash_unique((repoUri+extra).encode())
|
||||||
else:
|
else:
|
||||||
repoUri = "unknown"
|
repoUri = "unknown"
|
||||||
|
|
||||||
res = pd.DataFrame(data={
|
res = pd.DataFrame(data={
|
||||||
"id" : e.project_id,
|
"id" : e.project_id,
|
||||||
"project_name" : repoUri,
|
"project_name" : project_name,
|
||||||
"creation_date" : pd.Timestamp(0.0, unit='s'), # TODO: external info
|
"creation_date" : pd.Timestamp(0.0, unit='s'), # TODO: external info
|
||||||
"repo_url" : repoUri,
|
"repo_url" : repoUri,
|
||||||
"primary_language" : b.project['semmle.sourceLanguage'][0],
|
"primary_language" : b.project['semmle.sourceLanguage'][0],
|
||||||
|
|||||||
Reference in New Issue
Block a user