我正在尝试弄清楚如何使用 Github Actions 签出远程公共存储库,然后从当前存储库添加一些敏感文件,最后构建等。
我相信我可以使用以下命令查看远程仓库
steps:
- name: Checkout
uses: actions/checkout@v2
with:
repository: foo-user/bar-repo
Run Code Online (Sandbox Code Playgroud)
但是,如何将当前存储库中的文件中的一些文件复制到此已签出的存储库中?
我们希望使用 Dependabot 来了解更新的依赖项,但我们不希望 Dependabot 自行创建拉取请求,也不希望自动构建(我们使用 GitHub 进行代码,使用 Azure DevOps 进行构建)。
文档( https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions )中没有明确的提示来执行此操作。我们已经尝试排除 dependentabot 分支,但这在任何形式下都不起作用。
# Azure DevOps Excludes
pr:
autoCancel: "true"
branches:
exclude:
- dependabot/*
- dependabot/**/*
Run Code Online (Sandbox Code Playgroud)
我们还在 Stack Overflow 上发现了将限制设置为 0 的提示,但仍然创建了 PR
version: 2
updates:
- directory: "/"
open-pull-requests-limit: 0
Run Code Online (Sandbox Code Playgroud)
是否有可能使用 Dependabot 作为信息源?