Indent data extraction / assembly
This commit is contained in:
@@ -57,15 +57,15 @@ def process_db_file(zip_path, db_collection_dir):
|
|||||||
result_url = f"http://hepc/{db_collection_dir}/{new_db_fname}"
|
result_url = f"http://hepc/{db_collection_dir}/{new_db_fname}"
|
||||||
|
|
||||||
metadata = {
|
metadata = {
|
||||||
"git_branch": "HEAD",
|
"git_branch" : "HEAD",
|
||||||
"git_commit_id": sha,
|
"git_commit_id" : sha,
|
||||||
"git_repo": repo,
|
"git_repo" : repo,
|
||||||
"ingestion_datetime_utc": str(creation_time),
|
"ingestion_datetime_utc" : str(creation_time),
|
||||||
"result_url": result_url,
|
"result_url" : result_url,
|
||||||
"tool_id": "9f2f9642-febb-4435-9204-fb50bbd43de4",
|
"tool_id" : "9f2f9642-febb-4435-9204-fb50bbd43de4",
|
||||||
"tool_name": f"codeql-{primary_language}",
|
"tool_name" : f"codeql-{primary_language}",
|
||||||
"tool_version": cli_version,
|
"tool_version" : cli_version,
|
||||||
"projname": f"{owner}/{repo}",
|
"projname" : f"{owner}/{repo}",
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata_file = local.path(db_collection_dir) / "metadata.json"
|
metadata_file = local.path(db_collection_dir) / "metadata.json"
|
||||||
|
|||||||
Reference in New Issue
Block a user