Skip to content

Commit

Permalink
change name of probe map
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Korczynski <[email protected]>
  • Loading branch information
AdamKorcz committed Dec 8, 2023
1 parent b69caff commit 3aa00ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/scorecard_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ func assignRawData(probeCheckName string, request *checker.CheckRequest, ret *Sc
func populateRawResults(request *checker.CheckRequest, probesToRun []string, ret *ScorecardResult) error {
probeCheckNames := make([]string, 0)
for _, probeName := range probesToRun {
probeCheckName := probes.ProbeChecks[probeName]
probeCheckName := probes.CheckMap[probeName]
if !contains(probeCheckNames, probeCheckName) {
probeCheckNames = append(probeCheckNames, probeCheckName)
err := assignRawData(probeCheckName, request, ret)
Expand Down
2 changes: 1 addition & 1 deletion probes/entries.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ var (
notCreatedRecently.Probe: notCreatedRecently.Run,
}

ProbeChecks = map[string]string{
CheckMap = map[string]string{
securityPolicyPresent.Probe: "Security-Policy",
securityPolicyContainsLinks.Probe: "Security-Policy",
securityPolicyContainsVulnerabilityDisclosure.Probe: "Security-Policy",
Expand Down

0 comments on commit 3aa00ca

Please sign in to comment.