Skip to content

Commit ae2a681

Browse files
authored
Update dependencygraph.py
1 parent 7f91d9d commit ae2a681

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ghastoolkit/octokit/dependencygraph.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ def getDependenciesInPR(self, base: str, head: str) -> Dependencies:
215215

216216
for alert in depdata.get("vulnerabilities", []):
217217
dep_alert = DependencyAlert(
218+
depdata.get("vulnerabilities").index(alert),
219+
"open",
218220
alert.get("severity"),
219221
purl=dep.getPurl(False),
220222
advisory=Advisory(

0 commit comments

Comments
 (0)