mirror of
https://github.com/ossf/scorecard.git
synced 2024-11-05 05:17:00 +03:00
🐛 Fix Dependabot check to accept .yaml file extension (#1601)
This commit is contained in:
parent
5e1fd5230c
commit
f84291dcfd
@ -43,7 +43,7 @@ func checkDependencyFileExists(name string, data fileparser.FileCbData) (bool, e
|
||||
}
|
||||
|
||||
switch strings.ToLower(name) {
|
||||
case ".github/dependabot.yml":
|
||||
case ".github/dependabot.yml", ".github/dependabot.yaml":
|
||||
*ptools = append(*ptools, checker.Tool{
|
||||
Name: "Dependabot",
|
||||
URL: "https://github.com/dependabot",
|
||||
|
@ -144,6 +144,14 @@ func TestDependencyUpdateTool(t *testing.T) {
|
||||
".github/dependabot.yml",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "dependency update tool",
|
||||
wantErr: false,
|
||||
want: 1,
|
||||
files: []string{
|
||||
".github/dependabot.yaml",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "foo bar",
|
||||
wantErr: false,
|
||||
|
Loading…
Reference in New Issue
Block a user