我在我的React Native应用程序的存储库中启用了 Dependabot GitHub 操作,但由于某种原因,它不会自动更新。我有 2 个依赖项不会: xmldon 0.5.0 和 node-fetch 2.6.1
当我尝试创建 Dependabot 安全更新时,我不断收到此错误:
Dependabot failed to update your dependencies because there was an error parsing the package.json found at /package.json.
Dependabot encountered the following error:
Dependabot::DependencyFileNotParseable
另外,我不应该手动创建一个dependabot安全更新,因为我的github操作应该自动化它,它看起来像这样:
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
# Maintain dependencies for npm
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
# Maintain dependencies for Python files in requirements.txt
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
路线:my-app/.github/dependabot.yml
我在这里错过了什么吗?我以完全相同的方式为我的网站启用了此功能,该网站是用React.js编写的,并且运行良好。