app: if repo changes, do not autoupdate
This commit is contained in:
@@ -777,6 +777,9 @@ function canAutoupdateAppSync(app, updateInfo) {
|
||||
|
||||
if (updateInfo.unstable) return { code: false, reason: 'Update is marked as unstable' }; // only manual update allowed for unstable updates
|
||||
|
||||
// for community apps, it's a warning sign when the repo changes (for example: versions domain gets hijacked)
|
||||
if (docker.parseImageRef(manifest.dockerImage).fullRepositoryName !== docker.parseImageRef(app.manifest.dockerImage).fullRepositoryName) return { code: false, reason: 'Package docker image repository has changed' };
|
||||
|
||||
if ((semver.major(app.manifest.version) !== 0) && (semver.major(app.manifest.version) !== semver.major(manifest.version))) {
|
||||
return { code: false, reason: 'Major package version requires review of breaking changes' }; // major changes are blocking
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user