mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-11 08:55:27 +03:00
✨ dependency-update-tool: detect GitLab Renovate config files (#3823)
also organize the list in order of appearance on website. this makes it easier to compare. Signed-off-by: Spencer Schrock <sschrock@google.com>
This commit is contained in:
parent
3b948257fc
commit
301208ce76
@ -92,9 +92,16 @@ var checkDependencyFileExists fileparser.DoWhileTrueOnFilename = func(name strin
|
||||
},
|
||||
})
|
||||
|
||||
// https://docs.renovatebot.com/configuration-options/
|
||||
case ".github/renovate.json", ".github/renovate.json5", ".renovaterc.json", "renovate.json",
|
||||
"renovate.json5", ".renovaterc":
|
||||
// https://docs.renovatebot.com/configuration-options/
|
||||
case "renovate.json",
|
||||
"renovate.json5",
|
||||
".github/renovate.json",
|
||||
".github/renovate.json5",
|
||||
".gitlab/renovate.json",
|
||||
".gitlab/renovate.json5",
|
||||
".renovaterc",
|
||||
".renovaterc.json",
|
||||
".renovaterc.json5":
|
||||
*ptools = append(*ptools, checker.Tool{
|
||||
Name: "RenovateBot",
|
||||
URL: asPointer("https://github.com/renovatebot/renovate"),
|
||||
|
@ -63,6 +63,18 @@ func Test_checkDependencyFileExists(t *testing.T) {
|
||||
want: true,
|
||||
wantErr: false,
|
||||
},
|
||||
{
|
||||
name: ".gitlab/renovate.json",
|
||||
path: ".gitlab/renovate.json",
|
||||
want: true,
|
||||
wantErr: false,
|
||||
},
|
||||
{
|
||||
name: ".gitlab/renovate.json5",
|
||||
path: ".gitlab/renovate.json5",
|
||||
want: true,
|
||||
wantErr: false,
|
||||
},
|
||||
{
|
||||
name: ".renovaterc.json",
|
||||
path: ".renovaterc.json",
|
||||
|
Loading…
Reference in New Issue
Block a user