Skip to content

Empty startColumn fields in a SARIF file should be treated as 1, not 0 #182

@josemaia

Description

@josemaia

Source: https://docs.github.com/en/code-security/codeql-cli/using-the-advanced-functionality-of-the-codeql-cli/sarif-output#region-object

If we compare a file without startColumn in their findings to the one that's uploaded & retrieved (e.g. Checkov Terraform results), findings will not match because the code will compare something like "CKV2_AWS_57;secrets/main.tf;1;1" to "CKV2_AWS_57;secrets/main.tf;1;0".

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