Skip to content

Commit

Permalink
feat(presets): add replacements for ZAP org moves (#29117)
Browse files Browse the repository at this point in the history
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
  • Loading branch information
fgreinacher and HonkingGoose committed May 16, 2024
1 parent 8bbde23 commit 7df1dc7
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions lib/config/presets/internal/replacements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const presets: Record<string, Preset> = {
'replacements:vso-task-lib-to-azure-pipelines-task-lib',
'replacements:vsts-task-lib-to-azure-pipelines-task-lib',
'replacements:xmldom-to-scoped',
'replacements:zap',
],
ignoreDeps: [], // Hack to improve onboarding PR description
},
Expand Down Expand Up @@ -950,6 +951,35 @@ export const presets: Record<string, Preset> = {
},
],
},
zap: {
description: 'Replace ZAP dependencies.',
packageRules: [
{
description:
'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$',
],
replacementName: 'zaproxy/zap-stable',
replacementVersion: '2.14.0',
},
{
description:
'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$',
],
replacementName: 'zaproxy/zap-bare',
replacementVersion: '2.14.0',
},
],
},
};

const muiReplacement: Replacement[] = [
Expand Down

0 comments on commit 7df1dc7

Please sign in to comment.