Skip to content

bug: Error with CSV output #139

@ptader

Description

@ptader

What happened:
When using the -o csv option with Grant, an error occurs while -o json and -o table work as expected.

What you expected to happen:
Had hoped to see Grant output in CSV format

Steps to reproduce the issue:
Ran with the -o csv option

# grant check -o csv -c grant.yaml sbom.spdx.json
 ⠙ Checking licenses  ━━━━━━━━━━━━━━━━━━━━
[0001] ERROR unable to get license by ID: LicenseRef-public-domain; no matching spdx id found
[0001] ERROR unable to get license by ID: LicenseRef-BSD-3-clause-Cambridge; no matching spdx id found
<snip>
unable to render report for inputs [sbom.spdx.json]: invalid format: csv; valid formats are: [json table csv]

Anything else we need to know?:
Config file attached.

Environment:

  • Output of grant version: grant 0.2.2
  • OS Ubuntu 20.04.6 LTS / MacOS 14.6.1

grant.yaml.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions