Skip to content

Commit

Permalink
fix search in map
Browse files Browse the repository at this point in the history
Signed-off-by: balteravishay <[email protected]>
  • Loading branch information
balteravishay committed Jan 24, 2025
1 parent 0c47404 commit 7e27479
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion probes/memorysafe/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"go/parser"
"go/token"
"reflect"
"strings"

"github.com/ossf/scorecard/v5/checker"
"github.com/ossf/scorecard/v5/checks/fileparser"
Expand Down Expand Up @@ -99,7 +100,7 @@ func getRepositoryLanguageChecks(raw *checker.CheckRequest) []languageMemoryChec
}
ret := []languageMemoryCheckConfig{}
for _, language := range langs {
if lang, ok := languageMemorySafeSpecs[language.Name]; ok {
if lang, ok := languageMemorySafeSpecs[clients.LanguageName(strings.ToLower(string(language.Name)))]; ok {
ret = append(ret, lang)
}
}
Expand Down

0 comments on commit 7e27479

Please sign in to comment.