Get presigned S3 URLs for a commit's artifacts
Returns unique artifacts from all scans of this commit in the repository, matching gRPC GetArtifactPresignedUrlsByCommitHash. Returns 404 when there are no artifacts. An artifact whose file is missing from S3 has an empty presignedUrl.
Request
GET
https://appsec.sourcecraft.tech/v1/artifacts/presigned-urls
Query parameters
|
Name |
Description |
|
commitHash |
Type: string Commit hash whose scan artifacts to download Pattern: Example: `` |
|
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
{
"artifacts": [
{
"artifactKey": "example",
"presignedUrl": "example",
"engineName": "example",
"engineType": "example"
}
]
}
|
Name |
Description |
|
artifacts |
Type: ArtifactDownloadDto[] Example
|
ArtifactDownloadDto
|
Name |
Description |
|
artifactKey |
Type: string Example: |
|
engineName |
Type: string Example: |
|
engineType |
Type: string Example: |
|
presignedUrl |
Type: string Example: |
Example
{
"artifactKey": "example",
"presignedUrl": "example",
"engineName": "example",
"engineType": "example"
}