-
Notifications
You must be signed in to change notification settings - Fork 508
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
Discussion: Can probes exist without belonging to a check #3235
Comments
Stale issue message |
This exists to some extent already. For the
Only A similar situation will happen with some of the optional
I think the bigger question will be how raw data collection will work in these cases, as sometimes they use the same data (like |
Also linking #3840, which has me thinking about this again. There is a CLI argument, How to make it workThe initial implementation of There's at least two piece of info we need:
We can always use the same strategy from checks, which is an scorecard/checks/all_checks.go Lines 57 to 58 in fb3edd9
If we had a func init() {
// may not be able to use constants from checks package due to circular imports
requiredRawData := []string{
"Maintained",
"SAST",
}
supportedRequestTypes := []probes.RequestType{
probes.CommitBased,
}
if err := registerProbe(Probe /* name */ , Run /* func */ , requiredRawData, supportedRequestTypes); err != nil {
// this should never happen
panic(err)
}
} This would also let us register supported request types (which relates to #3718). |
So I played around with this a little bit in a branch: https://github.com/spencerschrock/scorecard/tree/register-probes the Lines 24 to 25 in c940d9b
|
The probes (experimental) currently need to belong to a check to be run. What is users need probes that don't fit into a check? Do we create a new check? Do we put all new probes into their own check? In this case, shall we "hide" these checks from the
--checks
option?I think this will eventually be a case-by-case discussion. But it would be good to have a story.
I'm currently thinking that if there's not obvious check for a new probe, we could have a fallback "special" check that contains all the probes and not exposed the check within the
--checks
option. This would also allow us to migrate probes to part of a public check once we think that probe(s) should be "promoted" to a public check (based on probe popularity, etc).The text was updated successfully, but these errors were encountered: