gpt4 book ai didi

github - 如何让dependabot仅触发安全更新

转载 作者:行者123 更新时间:2023-12-04 11:48:40 28 4
gpt4 key购买 nike

我正在使用 GitHub Dependabot.yml,版本 2。

version: 2
updates:
# Nuget Packages
- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "monthly"
我试图弄清楚是否有可能将它配置为仅当它们包含安全修复程序时才会更新依赖项,因为它可以为版本 1 完成
version: 1
update_configs:
- package_manager: "dotnet:nuget"
directory: "/"
update_schedule: "monthly"
allowed_updates:
- match:
update_type: "security"
让我知道您是否遇到了同样的问题以及您是如何解决的。
谢谢

最佳答案

是的,我遇到了同样的问题,然后我发现了这样的问题 github community thread .

I remembered where I saw this. When using the original dependabot from the marketplace one configuration option is to only perform security updates. I have that set from one of my repositories. There is now an option in the original dependabot to generate a dependabot.yml configuration file using the settings configured in the original dependabot (to assist in transitioning to using dependabot.yml). When I do so for the repository with only security updates enabled I receive this message:


You’re using unsupported featuresThis repository is configured to only scan for security updates. Configuring security updates using the new config file is not supported. You can instead enable Dependabot Security Updates from the repository security settings page 18.


听起来像是在dependabot v2 中,他们已经将安全更新分离到UI 配置中,这与GitHub 操作 secret 一样糟糕。但是看起来您不再需要依赖机器人来为依赖项配置安全补丁。
如果这有帮助,请告诉我。

关于github - 如何让dependabot仅触发安全更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64047526/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com