Skip to content

Execution error on vulnerabilities with non fixed version #8

@federico-agostini-bigblue

Description

Error

KeyError: 'FixedVersion'

I'm getting this error when I tried to upload the json result to my repo

Log

GitHub Token: ***
Executing: gh --repo "myOrg/*****-app-api" issue list --label "Vulnerability, Chore" --json title --jq .
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/trivy_report/report_issues.py", line 111, in
main()
~~~~^^
File "/trivy_report/report_issues.py", line 76, in main
reports = parse_results(data, existing_issues=existing_issues)
File "/trivy_report/report_generator.py", line 108, in parse_results
package_fixed_version = vulnerability["FixedVersion"]
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: 'FixedVersion'

The same error is show when tried to execute the development script locally

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions