Skip to content

Commit

Permalink
add category and file location to code-scanning (#71)
Browse files Browse the repository at this point in the history
* add category and file location to code-scanning

* change names

* Fix Black errors

---------

Co-authored-by: Paul Hodgkinson <[email protected]>
  • Loading branch information
rkeidar and aegilops authored Jan 10, 2025
1 parent f5e16bf commit 0ab1262
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/code_scanning.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ def write_repo_cs_list(cs_list):
"most_recent_instance_state",
"most_recent_instance_sha",
"instances_url",
"most_recent_instance_category",
"most_recent_instance_location_path",
]
)
for cs in cs_list:
Expand All @@ -83,6 +85,8 @@ def write_repo_cs_list(cs_list):
cs["most_recent_instance"]["state"],
cs["most_recent_instance"]["commit_sha"],
cs["instances_url"],
cs["most_recent_instance"]["category"],
cs["most_recent_instance"]["location"]["path"],
]
)

Expand Down

0 comments on commit 0ab1262

Please sign in to comment.