dependabot: Error : .github#L1 No event triggers defined in `on`

dependabot: Error : .github#L1 No event triggers defined in `on`

我正在尝试在 Github 存储库上设置 dependabot。

这是我的配置文件:

version: 2
updates:
  - package-ecosystem: "pip"
    directory: "/"
    schedule:
      interval: "daily"
    open-pull-requests-limit: 10

我收到以下错误:

Annotations
1 error
Error : .github#L1
No event triggers defined in `on`

. But I adapted this file from a copy-paste of an example in the docs。另外,我用验证工具验证了yaml文件。

知道我做错了什么吗?

GitHub把dependabot.yml解析为action文件,因为我误把它放在了.github/workflows/

应该是.github/dependabot.yml.