Skip to content

Commit

Permalink
fix: Restrict downgrade checks only to Docker versioning scheme (#30105)
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov authored Jul 9, 2024
1 parent 2695ca9 commit e12e493
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/workers/repository/process/lookup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
} from '../../../../modules/datasource/common';
import { getRangeStrategy } from '../../../../modules/manager';
import * as allVersioning from '../../../../modules/versioning';
import { id as dockerVersioningId } from '../../../../modules/versioning/docker';
import { ExternalHostError } from '../../../../types/errors/external-host-error';
import { assignKeys } from '../../../../util/assign-keys';
import { applyPackageRules } from '../../../../util/package-rules';
Expand Down Expand Up @@ -456,6 +457,7 @@ export async function lookupUpdates(
versioning.isSingleVersion(update.newValue);
// istanbul ignore if
if (
config.versioning === dockerVersioningId &&
update.updateType !== 'rollback' &&
update.newValue &&
versioning.isVersion(update.newValue) &&
Expand Down

0 comments on commit e12e493

Please sign in to comment.