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: Example: |
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
|
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: |
|
codeFlowIndex |
Type: integer |
|
endColumn |
Type: integer |
|
endLine |
Type: integer |
|
fileName |
Type: string Example: |
|
locationType |
Type: LocationType Enum: |
|
message |
Type: string 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"
}