CodeScanning.getAlerts() returns wrong data type
Closed this issue · 3 comments
Pradoxzon commented
Currently CodeScanning.getAlerts()
(octokit/codescanning.py on line 94) returns a list[dict]
instead of the expected list[CodeAlert]
. This causes any usage that expects CodeAlert objects to fail. For example, when Policy as Code attempts to access CodeAlert properties in checks.py starting on line 89, an exception is raised since a 'dict' object does not have those properties.
It looks like this may have been introduced with the changes to CodeScanning.getAlerts()
in commit 88195cc.
GeekMasher commented
@Pradoxzon you are absolutely right, let me create a PR for this now.
GeekMasher commented
Release 0.6.1
should fix the issue now
https://github.com/GeekMasher/ghastoolkit/releases/tag/0.6.1
Pradoxzon commented
Thank you for the prompt fix!