Skip to content

Paths converted to lowercase in SARIF #25

@tsvetomir

Description

@tsvetomir

I'm evaluating the action together with GitHub Advanced Security for a C# project. This works mostly fine, but the code locations can't be resolved due to the incorrect casing.

The SARIF output from the action converts all physicalLocations to lowercase. The logicalLocations don't have this issue:

"locations": [
    {
      "physicalLocation": {
        "artifactLocation": {
          "uri": "acme.blazor/components/editor/acmeeditor.razor"
        },
        "region": {
          "startLine": 39
        }
      },
      "logicalLocations": [
        {
          "name": "BuildRenderTree",
          "fullyQualifiedName": "acme_blazor_dll.acme.Blazor.Components.acmeEditor.BuildRenderTree",
          "kind": "function"
        },
        {
          "fullyQualifiedName": "microsoft_aspnetcore_components_dll.Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.AddContent",
          "kind": "member",
          "parentIndex": 0
        }
      ]
    }
  ],

The actual file name in this case is Acme.Blazor/Components/Editor/AcmeEditor.razor.

I appreciate your help. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions