Skip to content

Commit 9c5ee2f

Browse files
authored
fix(amazonq): profile arn not passed causing ResourceNotFound #2123
## Problem service will throw resourceNotFound if account doesn't match within the same code scan job, and here we miss profile arn in the `createUploadUrl` API
1 parent b283ffc commit 9c5ee2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/codewhisperer/commands/startSecurityScan.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export async function startSecurityScan(
188188
const uploadStartTime = performance.now()
189189
const scanName = randomUUID()
190190
try {
191-
artifactMap = await getPresignedUrlAndUpload(client, zipMetadata, scope, scanName)
191+
artifactMap = await getPresignedUrlAndUpload(client, zipMetadata, scope, scanName, profile)
192192
} finally {
193193
await zipUtil.removeTmpFiles(zipMetadata, scope)
194194
codeScanTelemetryEntry.artifactsUploadDuration = performance.now() - uploadStartTime

0 commit comments

Comments
 (0)