Skip to content

HTML autotrim bug #85

Description

@zsd4yr

for sarif

{
          "ruleId": "CKV_SECRET_3",
          "ruleIndex": 21,
          "level": "error",
          "message": {
            "text": "Azure Storage Account access key"
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "tools/bin/RedacteA/RedacteB/RedacteB.deps.json"
                },
                "region": {
                  "startLine": 953,
                  "endLine": 954,
                  "snippet": {
                    "text": "      \"REMOVED\n"
                  }
                }
              }
            }
          ],
        },
        {
          "ruleId": "CKV_SECRET_3",
          "ruleIndex": 21,
          "level": "error",
          "message": {
            "text": "Azure Storage Account access key"
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "tools/bin/RedacteA/RedacteB/RedacteB.deps.json"
                },
                "region": {
                  "startLine": 960,
                  "endLine": 961,
                  "snippet": {
                    "text": "      \"REMOVED,\n"
                  }
                }
              }
            }
          ],
        },

produced html

ools/bin/RedacteA/RedacteB/RedacteB.deps.json:953
ools/bin/RedacteA/RedacteB/RedacteB.deps.json:960

but it should have produced

RedacteB.deps.json:953
RedacteB.deps.json:960

or

tools/bin/RedacteA/RedacteB/RedacteB.deps.json:953
tools/bin/RedacteA/RedacteB/RedacteB.deps.json:960

but it certainty shouldn't be just pulling the t off

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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