File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
amazonq/.changes/next-release Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "type" : " Bug Fix" ,
3
+ "description" : " Fix bug where review shows 0 findings"
4
+ }
Original file line number Diff line number Diff line change @@ -202,13 +202,15 @@ export class DefaultCodeWhispererClient {
202
202
}
203
203
204
204
public async listCodeScanFindings (
205
- request : ListCodeScanFindingsRequest
205
+ request : ListCodeScanFindingsRequest ,
206
+ profileArn : string | undefined
206
207
) : Promise < PromiseResult < ListCodeScanFindingsResponse , AWSError > > {
207
208
if ( this . isBearerTokenAuth ( ) ) {
208
209
const req = {
209
210
jobId : request . jobId ,
210
211
nextToken : request . nextToken ,
211
212
codeAnalysisFindingsSchema : 'codeanalysis/findings/1.0' ,
213
+ profileArn : profileArn ,
212
214
} as CodeWhispererUserClient . ListCodeAnalysisFindingsRequest
213
215
return ( await this . createUserSdkClient ( ) ) . listCodeAnalysisFindings ( req ) . promise ( )
214
216
}
Original file line number Diff line number Diff line change @@ -57,7 +57,8 @@ export async function listScanResults(
57
57
const logger = getLoggerForScope ( scope )
58
58
const codeScanIssueMap : Map < string , RawCodeScanIssue [ ] > = new Map ( )
59
59
const aggregatedCodeScanIssueList : AggregatedCodeScanIssue [ ] = [ ]
60
- const requester = ( request : codewhispererClient . ListCodeScanFindingsRequest ) => client . listCodeScanFindings ( request )
60
+ const requester = ( request : codewhispererClient . ListCodeScanFindingsRequest ) =>
61
+ client . listCodeScanFindings ( request , profile ?. arn )
61
62
const request : codewhispererClient . ListCodeScanFindingsRequest = {
62
63
jobId,
63
64
codeAnalysisFindingsSchema : codeScanFindingsSchema ,
You can’t perform that action at this time.
0 commit comments