Skip to content

Commit eb15cd7

Browse files
fix: use vulnerabilityAlerts config instead of invalid packageRule ma… (#4147)
…tcher Move postUpgradeTasks from packageRules to vulnerabilityAlerts object. The matchIsVulnerabilityAlert option doesn't exist in Renovate's schema. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Shifts Renovate config to correctly trigger version bump tasks on security alerts. > > - Removes `packageRules` with non-existent `matchIsVulnerabilityAlert` > - Adds `vulnerabilityAlerts.postUpgradeTasks` to run `scripts/renovate-security-bump.sh` with specified `fileFilters` and `executionMode: branch` > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 676af0a. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: Claude Opus 4.5 <[email protected]>
1 parent 100f6f5 commit eb15cd7

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

renovate.json5

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,17 @@
66
"github>unstructured-io/renovate-config"
77
],
88

9-
// Enable automatic version bumping for Python security updates
10-
"packageRules": [
11-
{
12-
"matchDatasources": ["pypi"],
13-
"matchIsVulnerabilityAlert": true,
14-
"postUpgradeTasks": {
15-
"commands": [
16-
"bash scripts/renovate-security-bump.sh"
17-
],
18-
"fileFilters": [
19-
"unstructured/__version__.py",
20-
"CHANGELOG.md"
21-
],
22-
"executionMode": "branch"
23-
}
9+
// Run version bump script for all vulnerability alert PRs
10+
"vulnerabilityAlerts": {
11+
"postUpgradeTasks": {
12+
"commands": [
13+
"bash scripts/renovate-security-bump.sh"
14+
],
15+
"fileFilters": [
16+
"unstructured/__version__.py",
17+
"CHANGELOG.md"
18+
],
19+
"executionMode": "branch"
2420
}
25-
]
21+
}
2622
}

0 commit comments

Comments
 (0)