Start a new SCA run
curl --request POST \
--url 'https://api-(organization).gable.ai/v0/sca/start-run' \
--header 'Content-Type: application/json' \
--data '{
"code_info": {
"repo_uri": "<string>",
"repo_branch": "<string>",
"repo_commit": "<string>",
"project_root": "<string>"
},
"sca_info": {
"name": "<string>",
"version": "<string>",
"config": {
"ingress_signatures": [
{
"class_names": [
"<string>"
],
"method_names": [
"<string>"
],
"kind": "<string>"
}
],
"egress_signatures": [
{
"class_names": [
"<string>"
],
"method_names": [
"<string>"
],
"kind": "<string>"
}
]
}
},
"action": "register",
"pr_link": "<string>",
"include_unchanged_assets": false,
"output_format": "json"
}'
{
"runId": "<string>",
"s3PresignedUrl": {
"url": "<string>",
"fields": {}
}
}
The presigned S3 upload URL
The response from the postScaStartRun function
curl --request POST \
--url 'https://api-(organization).gable.ai/v0/sca/start-run' \
--header 'Content-Type: application/json' \
--data '{
"code_info": {
"repo_uri": "<string>",
"repo_branch": "<string>",
"repo_commit": "<string>",
"project_root": "<string>"
},
"sca_info": {
"name": "<string>",
"version": "<string>",
"config": {
"ingress_signatures": [
{
"class_names": [
"<string>"
],
"method_names": [
"<string>"
],
"kind": "<string>"
}
],
"egress_signatures": [
{
"class_names": [
"<string>"
],
"method_names": [
"<string>"
],
"kind": "<string>"
}
]
}
},
"action": "register",
"pr_link": "<string>",
"include_unchanged_assets": false,
"output_format": "json"
}'
{
"runId": "<string>",
"s3PresignedUrl": {
"url": "<string>",
"fields": {}
}
}