File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed
Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -110,15 +110,19 @@ async function retrieveVulnerabilityData(
110110 }
111111 const octokit = new Octokit ( ) ;
112112
113- const response = await octokit . securityAdvisories . listGlobalAdvisories ( {
114- ecosystem : "maven" ,
115- affects : deps . map ( ( p ) => `${ p . name } @${ p . version } ` ) ,
116- direction : "asc" ,
117- sort : "published" ,
118- per_page : 100 ,
119- } ) ;
113+ // Use paginate to fetch all pages of results
114+ const allAdvisories = await octokit . paginate (
115+ octokit . securityAdvisories . listGlobalAdvisories ,
116+ {
117+ ecosystem : "maven" ,
118+ affects : deps . map ( ( p ) => `${ p . name } @${ p . version } ` ) ,
119+ direction : "asc" ,
120+ sort : "published" ,
121+ per_page : 100 ,
122+ }
123+ ) ;
120124
121- const allCves : CVE [ ] = response . data
125+ const allCves : CVE [ ] = allAdvisories
122126 . filter (
123127 ( c ) =>
124128 ! c . withdrawn_at ?. trim ( ) &&
You can’t perform that action at this time.
0 commit comments