Skip to content

Commit

Permalink
fix(presets): replace matchPackagePrefix/Patterns with `matchPackag…
Browse files Browse the repository at this point in the history
…eNames` (#29159)
  • Loading branch information
RahulGautamSingh authored and rarkins committed May 31, 2024
1 parent f97852a commit 6aa6b23
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions lib/config/presets/internal/replacements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -963,9 +963,9 @@ export const presets: Record<string, Preset> = {
'The `zap-stable` image has moved to the `zaproxy` organization.',
matchCurrentVersion: '>=2.0.0 <2.14.0',
matchDatasources: ['docker'],
matchPackagePatterns: [
'^(?:docker\\.io/)?owasp/zap2docker-stable$',
'^(?:docker\\.io/)?softwaresecurityproject/zap-stable$',
matchPackageNames: [
'/^(?:docker\\.io/)?owasp/zap2docker-stable$/',
'/^(?:docker\\.io/)?softwaresecurityproject/zap-stable$/',
],
replacementName: 'zaproxy/zap-stable',
replacementVersion: '2.14.0',
Expand All @@ -975,9 +975,9 @@ export const presets: Record<string, Preset> = {
'The `zap-bare` image has moved to the `zaproxy` organization.',
matchCurrentVersion: '>=2.0.0 <2.14.0',
matchDatasources: ['docker'],
matchPackagePatterns: [
'^(?:docker\\.io/)?owasp/zap2docker-bare$',
'^(?:docker\\.io/)?softwaresecurityproject/zap-bare$',
matchPackageNames: [
'/^(?:docker\\.io/)?owasp/zap2docker-bare$/',
'/^(?:docker\\.io/)?softwaresecurityproject/zap-bare$/',
],
replacementName: 'zaproxy/zap-bare',
replacementVersion: '2.14.0',
Expand Down
8 changes: 4 additions & 4 deletions lib/config/presets/internal/workarounds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ export const presets: Record<string, Preset> = {
matchCurrentValue:
'/^(?<major>\\d+)(?:\\.(?<minor>\\d+)(?:\\.(?<patch>\\d+))?)?-(?<compatibility>.+)-(?<build>\\d+)(?:-r(?<revision>\\d+))?$/',
matchDatasources: ['docker'],
matchPackagePrefixes: [
'bitnami/',
'docker.io/bitnami/',
'gcr.io/bitnami-containers/',
matchPackageNames: [
'bitnami/**',
'docker.io/bitnami/**',
'gcr.io/bitnami-containers/**',
],
versioning:
'regex:^(?<major>\\d+)(?:\\.(?<minor>\\d+)(?:\\.(?<patch>\\d+))?)?(:?-(?<compatibility>.+)-(?<build>\\d+)(?:-r(?<revision>\\d+))?)?$',
Expand Down

0 comments on commit 6aa6b23

Please sign in to comment.