Skip to content

Commit e67e77d

Browse files
authored
Add token to Dependabot config (#46160)
- use new `DEPENDABOT_NPM_TOKEN` token - add a .yarnrc file enforcing our registry choice globally - might not be necessary now but will help if we add new `npm` projects - remove submodule update configuration for release/3.1 nits: - add explicit day and time for our weekly updates - move submodule update configurations together - Monday is the default but configuration takes less words than previous comments
1 parent 51abb6a commit e67e77d

File tree

2 files changed

+30
-19
lines changed

2 files changed

+30
-19
lines changed

.github/dependabot.yml

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,64 @@
11
version: 2
2+
registries:
3+
azure.com:
4+
token: ${{secrets.DEPENDABOT_NPM_TOKEN}}
5+
type: npm-registry
6+
url: https://pkgs.dev.azure.com/
7+
28
updates:
3-
# Keep submodules up to date in 'main'.
4-
- package-ecosystem: "gitsubmodule"
9+
- package-ecosystem: npm
510
directory: "/"
11+
# Perform only security updates of our npm dependencies.
12+
open-pull-requests-limit: 0
13+
registries:
14+
- azure.com
15+
# Schedule should be ignored for security updates.
616
schedule:
7-
# Weekly interval opens PRs on Monday.
8-
interval: "weekly"
9-
allow:
10-
- dependency-type: "all"
11-
commit-message:
12-
prefix: "[main] "
13-
include: scope
14-
labels:
15-
- area-infrastructure
17+
interval: monthly
18+
1619
- package-ecosystem: "github-actions"
1720
directory: "/"
1821
schedule:
19-
# Weekly interval opens PRs on Monday.
22+
day: monday
2023
interval: "weekly"
24+
time: 05:00
25+
timezone: "America/Los_Angeles"
2126
commit-message:
2227
prefix: "[main] "
2328
include: scope
2429
labels:
2530
- area-infrastructure
2631

27-
# Keep submodules up to date in 'release/*' branches. (Unfortunately Dependabot security PRs can't target these.)
28-
# Monthly interval opens PRs on the first of each month.
32+
# Keep submodules up to date in 'main'.
2933
- package-ecosystem: "gitsubmodule"
3034
directory: "/"
3135
schedule:
32-
interval: "monthly"
36+
day: monday
37+
interval: "weekly"
38+
time: 05:00
39+
timezone: "America/Los_Angeles"
3340
allow:
3441
- dependency-type: "all"
3542
commit-message:
36-
prefix: "[release/2.1] "
43+
prefix: "[main] "
3744
include: scope
3845
labels:
3946
- area-infrastructure
40-
target-branch: "release/2.1"
47+
48+
# Keep submodules up to date in 'release/*' branches. (Unfortunately Dependabot security PRs can't target these.)
49+
# Monthly interval opens PRs on the first of each month.
4150
- package-ecosystem: "gitsubmodule"
4251
directory: "/"
4352
schedule:
4453
interval: "monthly"
4554
allow:
4655
- dependency-type: "all"
4756
commit-message:
48-
prefix: "[release/3.1] "
57+
prefix: "[release/2.1] "
4958
include: scope
5059
labels:
5160
- area-infrastructure
52-
target-branch: "release/3.1"
61+
target-branch: "release/2.1"
5362
- package-ecosystem: "gitsubmodule"
5463
directory: "/"
5564
schedule:

.yarnrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# yarn lockfile v1
2+
registry "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/"

0 commit comments

Comments
 (0)