Skip to content

golangci-lint export to sast error_type=minLength

When convert_to_sast enabled for golangci-lint it produces the report which is not parsed by Gitlab. The report contains name and value field with empty string inside:

{
  "version": "15.0.7",
  "vulnerabilities": [
    {
      "id": "0B31C24F788518A0BA009D83A136EC51",
      "name": "typecheck",
      "description": "typecheck: declared and not used: onetwor",
      "severity": "Critical",
      "location": {
        "file": "one/two.go",
        "start_line": 317,
        "end_line": 317
      },
      "identifiers": [
        {
          "type": "tool",
          "name": "",
          "value": ""
        }
      ]
    },
    ...
  ]
}

Screenshot_2025-05-12_at_19.11.12