Skip to content

Commit

Permalink
Stubs openai enrichment
Browse files Browse the repository at this point in the history
  • Loading branch information
djschleen authored Mar 6, 2024
1 parent 2420c5b commit 023d25b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion enrichers/epss/epss.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const (
pageSize = 150
)

// Provider represents the OSSIndex provider
// Provider represents an EPSS enricher
type Enricher struct{}

// TODO: this needs to be refactored so we can batch the scanning and de-duplicate. Each component has it's own list of []models.Vulnerability and this function is called multiple times. At least the implementation here reduces the calls by batching per component.
Expand Down
13 changes: 13 additions & 0 deletions enrichers/openai/openai.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// package openai enriches vulnerability information
package openai

import "github.com/devops-kung-fu/bomber/models"

// Provider represents the openai enricher
type Enricher struct{}

// Enrich adds additional information to vulnerabilities
func (Enricher) Enrich(vulnerabilities []models.Vulnerability, credentials *models.Credentials) ([]models.Vulnerability, error) {

return nil, nil
}

0 comments on commit 023d25b

Please sign in to comment.