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 {
202202 }
203203
204204 public async listCodeScanFindings (
205- request : ListCodeScanFindingsRequest
205+ request : ListCodeScanFindingsRequest ,
206+ profileArn : string | undefined
206207 ) : Promise < PromiseResult < ListCodeScanFindingsResponse , AWSError > > {
207208 if ( this . isBearerTokenAuth ( ) ) {
208209 const req = {
209210 jobId : request . jobId ,
210211 nextToken : request . nextToken ,
211212 codeAnalysisFindingsSchema : 'codeanalysis/findings/1.0' ,
213+ profileArn : profileArn ,
212214 } as CodeWhispererUserClient . ListCodeAnalysisFindingsRequest
213215 return ( await this . createUserSdkClient ( ) ) . listCodeAnalysisFindings ( req ) . promise ( )
214216 }
Original file line number Diff line number Diff line change @@ -57,7 +57,8 @@ export async function listScanResults(
5757 const logger = getLoggerForScope ( scope )
5858 const codeScanIssueMap : Map < string , RawCodeScanIssue [ ] > = new Map ( )
5959 const aggregatedCodeScanIssueList : AggregatedCodeScanIssue [ ] = [ ]
60- const requester = ( request : codewhispererClient . ListCodeScanFindingsRequest ) => client . listCodeScanFindings ( request )
60+ const requester = ( request : codewhispererClient . ListCodeScanFindingsRequest ) =>
61+ client . listCodeScanFindings ( request , profile ?. arn )
6162 const request : codewhispererClient . ListCodeScanFindingsRequest = {
6263 jobId,
6364 codeAnalysisFindingsSchema : codeScanFindingsSchema ,
You can’t perform that action at this time.
0 commit comments