🐛 Fix Dependabot check to accept .yaml file extension (#1601)

This commit is contained in:
Behnaz Hassanshahi 2022-02-04 09:53:32 +10:00 committed by GitHub
parent 5e1fd5230c
commit f84291dcfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -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",

View File

@ -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,