Skip to content

Commit 26da700

Browse files
authored
build: use dependency cooldown logic (#330)
In this commit we add dependency cooldown logic that enables us to update more frequently and worry less about compromised packages. Signed-off-by: András Felleg <afelleg@gmail.com>
1 parent 66b760d commit 26da700

3 files changed

Lines changed: 25 additions & 3 deletions

File tree

.npmrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
package-lock=false
1+
package-lock=false
2+
minimummin-release-age=3

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,9 @@ packages = ["ibm_platform_services"]
6161
[tool.black]
6262
line-length = 120
6363
skip-string-normalization = true
64+
65+
[tool.pip.install]
66+
uploaded-prior-to = "P3D"
67+
68+
[tool.uv]
69+
exclude-newer = "3 days"

renovate.json

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": ["config:recommended"]
4-
}
3+
"extends": ["config:recommended"],
4+
"prConcurrentLimit": 4,
5+
"reviewers": ["pyrooka", "diatrcz", "Andris28"],
6+
"packageRules": [
7+
{
8+
"matchManagers": ["pep621"],
9+
"matchDatasources": ["pypi"],
10+
"minimumReleaseAge": "3 days",
11+
"description": "Wait 3 days before updating Python dependencies"
12+
},
13+
{
14+
"matchManagers": ["npm"],
15+
"extends": ["security:minimumReleaseAgeNpm"],
16+
"description": "Wait 3 days before updating semantic release dependencies"
17+
}
18+
]
19+
}

0 commit comments

Comments
 (0)