I am trying to customize which dependencies are updated using the allow
property of Dependabot's configuration YAML.
Research: allow
I see that the allow
property is preventing update of the dependencies instead of allowing update. Also, an allow for one dependency is preventing update for all dependencies.
For example I added the allow
property as below to allow for update of just one dependency poi-ooxml. I want to skip updates to all other dependencies.
allow:
- dependency-name: "org.apache.poi:poi-ooxml"
Result:
- All dependency updates are skipped.
Log file:
2022-06-16T20:41:32.4554260Z Checking if org.apache.poi:poi 4.1.1 needs updating
2022-06-16T20:41:32.4554513Z Requirements to unlock own
2022-06-16T20:41:32.4554747Z Updating org.apache.poi:poi is not allowed
2022-06-16T20:41:32.4555148Z Checking if org.apache.poi:poi-ooxml 4.1.1 needs updating
2022-06-16T20:41:32.4555414Z Requirements to unlock own
2022-06-16T20:41:32.4555760Z Updating org.apache.poi:poi-ooxml is not allowed
Adding full yaml as requested
version: 2
updates:
- package-ecosystem: maven
directory: "/xxx"
target-branch: "xxx"
open-pull-requests-limit: 10
allow:
- dependency-name: "org.apache.poi:poi-ooxml"