|
1 | 1 | # AUTOMATICALLY GENERATED |
2 | 2 | # DO NOT EDIT THIS FILE DIRECTLY, USE /templates/dependabot.yml.erb |
| 3 | +# |
| 4 | +# DISABLE "Dependabot Security Updates" because it scans past |
| 5 | +# archived-image directory. It creates noisy PRs. We can't stop that |
| 6 | +# behavior at all. |
| 7 | +# |
3 | 8 | version: 2 |
4 | 9 | updates: |
5 | 10 | # Maintain dependencies for GitHub Actions |
6 | 11 | - package-ecosystem: "github-actions" |
7 | 12 | directory: "/" |
8 | 13 | schedule: |
9 | | - interval: "weekly" |
10 | | - # Watch dependencies for current stable only |
11 | | -<% latest_version = Dir.glob("docker-image/*").sort_by {|version| Gem::Version.new(version.split('/').last.delete('v'))}.last %> |
12 | | -<% available_gemfile_paths = Dir.glob("#{latest_version}/**/Gemfile") %> |
13 | | -<% available_gemfile_paths.each do |gemfile_path| %> |
14 | | -<% path = File.dirname(gemfile_path) %> |
| 14 | + interval: "daily" |
| 15 | + groups: |
| 16 | + # PR: "Security update [package] from [old] to [new]" |
| 17 | + # This PR should be merged in hurry |
| 18 | + security-updates: |
| 19 | + applies-to: security-updates |
| 20 | + patterns: |
| 21 | + - "*" |
| 22 | + |
| 23 | + # PR: "Bump [package] from [old] to [new]" |
| 24 | + # No need to be merged this PR in hurry. It is enough to merge |
| 25 | + # once in a month. |
| 26 | + monthly-updates: |
| 27 | + applies-to: version-updates |
| 28 | + patterns: |
| 29 | + - "*" |
| 30 | + # Allow to create PR both of security and normal updates. |
| 31 | + open-pull-requests-limit: 1 |
| 32 | + |
| 33 | +<%- latest_version = Dir.glob("docker-image/*").sort_by {|version| Gem::Version.new(version.split('/').last.delete('v'))}.last -%> |
| 34 | +<%- available_gemfile_paths = Dir.glob("#{latest_version}/**/Gemfile") -%> |
| 35 | +<%- available_gemfile_paths.each do |gemfile_path| -%> |
| 36 | + <%- path = File.dirname(gemfile_path) %> |
| 37 | + # security updates in daily, ignore normal updates |
15 | 38 | - package-ecosystem: "bundler" |
16 | 39 | directory: "/<%= path %>" |
17 | 40 | schedule: |
18 | 41 | interval: "daily" |
| 42 | + groups: |
| 43 | + security-updates: |
| 44 | + applies-to: security-updates |
| 45 | + patterns: |
| 46 | + - "*" |
| 47 | + ignore: |
| 48 | + - dependency-name: "*" |
| 49 | + update-types: ["version-update"] |
| 50 | + # Check [Security and quality] or [Insights] > [Dependency graph] |
| 51 | + # periodically It will help to know security issues in each |
| 52 | + # Gemfile, but no need to create PR automatically. |
19 | 53 | open-pull-requests-limit: 0 |
20 | | -<% end %> |
| 54 | +<%- end -%> |
0 commit comments