File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -268,6 +268,10 @@ func (g *GitHubAdapter) FetchSBOMs(ctx *tcontext.TransferMetadata) (iterator.SBO
268
268
return sbomIterator , err
269
269
}
270
270
271
+ func (g * GitHubAdapter ) Monitor (ctx * tcontext.TransferMetadata ) (iterator.SBOMIterator , * tcontext.TransferMetadata , error ) {
272
+ return nil , ctx , fmt .Errorf ("Currently gitHub adapter does not support monitoring" )
273
+ }
274
+
271
275
// OutputSBOMs should return an error since GitHub does not support SBOM uploads
272
276
func (g * GitHubAdapter ) UploadSBOMs (ctx * tcontext.TransferMetadata , iterator iterator.SBOMIterator ) error {
273
277
return fmt .Errorf ("GitHub adapter does not support SBOM uploading" )
@@ -370,6 +374,11 @@ func (g *GitHubAdapter) applyRepoFilters(repos []string) []string {
370
374
return filteredRepos
371
375
}
372
376
377
+ func (g * GitHubAdapter ) fetchWatcher (ctx * tcontext.TransferMetadata , repos []string ) (iterator.SBOMIterator , error ) {
378
+ logger .LogInfo (ctx .Context , "Monitoring SBOM via github adapter currently doesn't support" )
379
+ return nil , nil
380
+ }
381
+
373
382
func (g * GitHubAdapter ) fetchSBOMsConcurrently (ctx * tcontext.TransferMetadata , repos []string ) (iterator.SBOMIterator , error ) {
374
383
logger .LogDebug (ctx .Context , "Fetching SBOMs concurrently" )
375
384
const maxWorkers = 5 // Number of concurrent workers (adjustable)
You can’t perform that action at this time.
0 commit comments