File tree 1 file changed +11
-7
lines changed
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -88,13 +88,17 @@ const upsertOSSFScorecardAnalysis = async (knex) => {
88
88
logger . log ( `Processing chunk ${ i + 1 } of ${ chunks . length } including ${ chunk . length } repositories` )
89
89
await Promise . all ( chunk . map ( async ( repo ) => {
90
90
debug ( `Running OSSF Scorecard for repository (${ repo . full_name } )` )
91
- const scorecard = await ossf . performScorecardAnalysis ( repo )
92
- debug ( `Validating OSSF Scorecard result for repository (${ repo . full_name } )` )
93
- validateOSSFResult ( scorecard )
94
- debug ( `Transforming OSSF Scorecard result for repository (${ repo . full_name } )` )
95
- const mappedData = ossf . mappers . result ( scorecard )
96
- debug ( `Upserting OSSF Scorecard result for repository (${ repo . full_name } )` )
97
- await upsertOSSFScorecard ( { ...mappedData , github_repository_id : repo . id } )
91
+ try {
92
+ const scorecard = await ossf . performScorecardAnalysis ( repo )
93
+ debug ( `Validating OSSF Scorecard result for repository (${ repo . full_name } )` )
94
+ validateOSSFResult ( scorecard )
95
+ debug ( `Transforming OSSF Scorecard result for repository (${ repo . full_name } )` )
96
+ const mappedData = ossf . mappers . result ( scorecard )
97
+ debug ( `Upserting OSSF Scorecard result for repository (${ repo . full_name } )` )
98
+ await upsertOSSFScorecard ( { ...mappedData , github_repository_id : repo . id } )
99
+ } catch ( error ) {
100
+ logger . warn ( `Error running OSSF Scorecard for repository (${ repo . full_name } ). Skipping...` )
101
+ }
98
102
} ) )
99
103
}
100
104
You can’t perform that action at this time.
0 commit comments