List a finding's SAST code-flow steps

Returns steps ordered by codeFlowIndex, threadFlowIndex and stepOrder. Returns an empty list when the finding has no steps or does not belong to this repository.

Request

GET

https://appsec.sourcecraft.tech/v1/findings/{findingUuid}/code-flow

Path parameters

Name

Description

findingUuid

Type: string

UUID of the finding returned by /v1/findings

Example: ``

Query parameters

Name

Description

gitRepo

Type: string

Repository identifier. Accepts either internal repository ID (e.g., 88769874964302633) or public UUID (e.g., 0199140f-4343-7c06-a7e3-b835c305b629). These values can be obtained from the getRepo API (fields: id and uuid).

Pattern: \S

Example: 0199140f-4343-7c06-a7e3-b835c305b629

Responses

200 OK

OK

Body

application/json
{
  "codeFlowSteps": [
    {
      "fileName": "example",
      "startLine": 0,
      "endLine": 0,
      "startColumn": 0,
      "endColumn": 0,
      "codeBlock": "example",
      "message": "example",
      "stepOrder": 0,
      "codeFlowIndex": 0,
      "threadFlowIndex": 0,
      "locationType": "LOCATION_TYPE_UNSPECIFIED"
    }
  ]
}

Name

Description

codeFlowSteps

Type: CodeFlowStepDto[]

Example
[
  {
    "fileName": "example",
    "startLine": 0,
    "endLine": 0,
    "startColumn": 0,
    "endColumn": 0,
    "codeBlock": "example",
    "message": "example",
    "stepOrder": 0,
    "codeFlowIndex": 0,
    "threadFlowIndex": 0,
    "locationType": "LOCATION_TYPE_UNSPECIFIED"
  }
]

LocationType

Type: string

Enum: LOCATION_TYPE_UNSPECIFIED, LOCATION_TYPE_FILE, LOCATION_TYPE_LINE, LOCATION_TYPE_FRAGMENT, LOCATION_TYPE_DAST_TARGET, UNRECOGNIZED

CodeFlowStepDto

Name

Description

codeBlock

Type: string

Example: example

codeFlowIndex

Type: integer

endColumn

Type: integer

endLine

Type: integer

fileName

Type: string

Example: example

locationType

Type: LocationType

Enum: LOCATION_TYPE_UNSPECIFIED, LOCATION_TYPE_FILE, LOCATION_TYPE_LINE, LOCATION_TYPE_FRAGMENT, LOCATION_TYPE_DAST_TARGET, UNRECOGNIZED

message

Type: string

Example: example

startColumn

Type: integer

startLine

Type: integer

stepOrder

Type: integer

threadFlowIndex

Type: integer

Example
{
  "fileName": "example",
  "startLine": 0,
  "endLine": 0,
  "startColumn": 0,
  "endColumn": 0,
  "codeBlock": "example",
  "message": "example",
  "stepOrder": 0,
  "codeFlowIndex": 0,
  "threadFlowIndex": 0,
  "locationType": "LOCATION_TYPE_UNSPECIFIED"
}
Предыдущая
Следующая