-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Including the Scorecard API #1938
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@neilnaveen looks like you have a small lint issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this, LGTM, except for a small nit.
- Fixes guacsec#1892 - Updated tests - Added a README for certifier/scorecard Signed-off-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com>
2efba9f
to
2db7b2b
Compare
Signed-off-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com>
Signed-off-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com>
@@ -26,7 +26,7 @@ type Certifier interface { | |||
// push to the docChannel to be ingested. | |||
// Note: there is an implicit contract with "QueryComponents" where the compChan type must be the same as | |||
// the one used by "components" | |||
CertifyComponent(ctx context.Context, components interface{}, docChannel chan<- *processor.Document) error | |||
CertifyComponent(ctx context.Context, components interface{}, docChannel chan<- *processor.Document, useScorecardAPI bool) error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there shouldn't be a scorecard specific flag for the ceritfier interface, things that are specific to the certifier should be part of the initialization of the certifier. Maybe this is something that should be part of RegisterCertifier.
@@ -0,0 +1,29 @@ | |||
# Scorecard Certifier |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice addition!
This pull request has been automatically marked as stale because it has not had recent activity (60 days of inactivity). |
ping to keep it from closing. |
This pull request has been automatically marked as stale because it has not had recent activity (60 days of inactivity). |
Description of the PR
PR Checklist
-s
flag togit commit
.make generate
has been runmake generate
has been runcollectsub
protobuf has been changed,make proto
has been run