{
  "SchemaVersion": 2,
  "CreatedAt": "2021-08-25T12:20:30.000000005Z",
  "ArtifactName": "testdata/fixtures/repo/secrets",
  "ArtifactType": "repository",
  "Metadata": {
    "ImageConfig": {
      "architecture": "",
      "created": "0001-01-01T00:00:00Z",
      "os": "",
      "rootfs": {
        "type": "",
        "diff_ids": null
      },
      "config": {}
    }
  },
  "Results": [
    {
      "Target": "deploy.sh",
      "Class": "secret",
      "Secrets": [
        {
          "RuleID": "aws-access-key-id",
          "Category": "AWS",
          "Severity": "CRITICAL",
          "Title": "AWS Access Key ID",
          "StartLine": 3,
          "EndLine": 3,
          "Code": {
            "Lines": [
              {
                "Number": 1,
                "Content": "#!/bin/sh",
                "IsCause": false,
                "Annotation": "",
                "Truncated": false,
                "Highlighted": "#!/bin/sh",
                "FirstCause": false,
                "LastCause": false
              },
              {
                "Number": 2,
                "Content": "",
                "IsCause": false,
                "Annotation": "",
                "Truncated": false,
                "FirstCause": false,
                "LastCause": false
              },
              {
                "Number": 3,
                "Content": "export AWS_ACCESS_KEY_ID=********************",
                "IsCause": true,
                "Annotation": "",
                "Truncated": false,
                "Highlighted": "export AWS_ACCESS_KEY_ID=********************",
                "FirstCause": true,
                "LastCause": true
              },
              {
                "Number": 4,
                "Content": "",
                "IsCause": false,
                "Annotation": "",
                "Truncated": false,
                "FirstCause": false,
                "LastCause": false
              }
            ]
          },
          "Match": "export AWS_ACCESS_KEY_ID=********************",
          "Layer": {}
        },
        {
          "RuleID": "mysecret",
          "Category": "Custom",
          "Severity": "HIGH",
          "Title": "My Secret",
          "StartLine": 7,
          "EndLine": 7,
          "Code": {
            "Lines": [
              {
                "Number": 5,
                "Content": "export GITHUB_PAT=ghp_0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",
                "IsCause": false,
                "Annotation": "",
                "Truncated": false,
                "Highlighted": "export GITHUB_PAT=ghp_0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",
                "FirstCause": false,
                "LastCause": false
              },
              {
                "Number": 6,
                "Content": "",
                "IsCause": false,
                "Annotation": "",
                "Truncated": false,
                "FirstCause": false,
                "LastCause": false
              },
              {
                "Number": 7,
                "Content": "echo ********",
                "IsCause": true,
                "Annotation": "",
                "Truncated": false,
                "Highlighted": "echo ********",
                "FirstCause": true,
                "LastCause": true
              }
            ]
          },
          "Match": "echo ********",
          "Layer": {}
        }
      ]
    }
  ]
}
