Skip to content

Bug: SARIF report no accepted by GitHub #820

@npetzall

Description

@npetzall

Describe the bug

A SARIF report uploaded to GitHub will be rejected if locations is empty.

But I also seems like GitHub only uses the first location.

To reproduce

Create a report with advisory issues.

Since Advisory uses lock file, they are currently excluded and empty.

Also ban has no location and license is created per label which creates multiple locations but not a sensible message.

cargo-deny version

0.18.9

What OS were you running cargo-deny on?

Linux

Additional context

I've started with an implementation, but I would like some guidance.

For the ones missing locations, I've done some modifications to InclusionGraph so the location can point to something that the user can change (project cargo.toml)

And included a compact graph(stops at first project crate) in the markdown for the result.

It's work in progress.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions