Skip to content

Commit b77d156

Browse files
committed
Always let Dependabot propose Cargo.lock updates
This fixes a bug in the `dependabot.yml` configuration since #1948, where we intend Dependabot to include the effect of `cargo update`, but this does not happen because `dependency-type: all` was not explicitly allowed. This does not make an analogous change to the Dependabot configuration for GitHub Actions, because `all` and `direct` currently have the same effect for them (and it is not obvious how it would work if that ever changes, or which we would prefer). For details on why this is needed for Dependabot to update most locked dependencies in `Cargo.lock` aside from the case where the update is done as part of updating a `Cargo.toml` dependency, see: - https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/controlling-dependencies-updated#allowing-specific-dependencies-to-be-updated - https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference#dependency-type-allow
1 parent 737bb49 commit b77d156

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/dependabot.yml

+3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ updates:
77
commit-message:
88
# Avoid non-"purposeful" prefix due to Dependabot misdetecting style (see `DEVELOPMENT.md`).
99
prefix: ''
10+
allow:
11+
- dependency-type: all
1012
groups:
1113
cargo:
1214
patterns: ['*']
15+
1316
- package-ecosystem: github-actions
1417
directory: '/'
1518
schedule:

0 commit comments

Comments
 (0)