mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
v4.7 (#12478)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Co-authored-by: Aditya Tripathi <aditya@climactic.co>
This commit is contained in:
co-authored by
Claude Opus 5.5
peaklabs-dev
Aditya Tripathi
parent
b7dc2e435b
commit
033f0c84da
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
/**
|
||||
* "Block deploys" (spec 15.8): which problems of a new image stop a deploy.
|
||||
*/
|
||||
enum ImageScanGateMode: string
|
||||
{
|
||||
case Off = 'off';
|
||||
case On = 'on';
|
||||
case Strict = 'strict';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::Off => 'Off',
|
||||
self::On => 'On',
|
||||
self::Strict => 'Strict',
|
||||
};
|
||||
}
|
||||
|
||||
public function description(): ?string
|
||||
{
|
||||
return match ($this) {
|
||||
self::Off => null,
|
||||
self::On => 'Blocks a deploy when the new image adds a problem that attackers are using or are likely to use.',
|
||||
self::Strict => 'Also blocks critical, high, and counted medium problems that have a fix, and operating systems that no longer get security fixes.',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user