utils.secscan: linter fixes
This commit is contained in:
parent
e81926fcba
commit
1d59095460
3 changed files with 85 additions and 82 deletions
|
@ -8,8 +8,8 @@ PRIORITY_LEVELS = {
|
|||
'color': '#9B9B9B',
|
||||
'score': 0,
|
||||
|
||||
'description': 'Unknown is either a security problem that has not been assigned ' +
|
||||
'to a priority yet or a priority that our system did not recognize',
|
||||
'description': 'Unknown is either a security problem that has not been assigned to a priority' +
|
||||
' yet or a priority that our system did not recognize',
|
||||
'banner_required': False
|
||||
},
|
||||
|
||||
|
@ -34,8 +34,8 @@ PRIORITY_LEVELS = {
|
|||
'score': 3,
|
||||
|
||||
'description': 'Low is a security problem, but is hard to exploit due to environment, ' +
|
||||
'requires a user-assisted attack, a small install base, or does very ' +
|
||||
'little damage.',
|
||||
'requires a user-assisted attack, a small install base, or does very little' +
|
||||
' damage.',
|
||||
'banner_required': False
|
||||
},
|
||||
|
||||
|
@ -48,8 +48,8 @@ PRIORITY_LEVELS = {
|
|||
'score': 6,
|
||||
|
||||
'description': 'Medium is a real security problem, and is exploitable for many people. ' +
|
||||
'Includes network daemon denial of service attacks, cross-site scripting, ' +
|
||||
'and gaining user privileges.',
|
||||
'Includes network daemon denial of service attacks, cross-site scripting, and ' +
|
||||
'gaining user privileges.',
|
||||
'banner_required': False
|
||||
},
|
||||
|
||||
|
@ -61,9 +61,9 @@ PRIORITY_LEVELS = {
|
|||
'color': '#F77454',
|
||||
'score': 9,
|
||||
|
||||
'description': 'High is a real problem, exploitable for many people in a default installation. ' +
|
||||
'Includes serious remote denial of services, local root privilege escalations, ' +
|
||||
'or data loss.',
|
||||
'description': 'High is a real problem, exploitable for many people in a default ' +
|
||||
'installation. Includes serious remote denial of services, local root ' +
|
||||
'privilege escalations, or data loss.',
|
||||
'banner_required': False
|
||||
},
|
||||
|
||||
|
@ -89,8 +89,8 @@ PRIORITY_LEVELS = {
|
|||
'color': 'black',
|
||||
'score': 11,
|
||||
|
||||
'description': 'Defcon1 is a Critical problem which has been manually highlighted ' +
|
||||
'by the Quay team. It requires immediate attention.',
|
||||
'description': 'Defcon1 is a Critical problem which has been manually highlighted by the Quay' +
|
||||
' team. It requires immediate attention.',
|
||||
'banner_required': True
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import logging
|
||||
import logging.config
|
||||
|
||||
import features
|
||||
|
||||
from collections import defaultdict
|
||||
|
||||
import features
|
||||
|
||||
from endpoints.notificationhelper import spawn_notification
|
||||
from data.database import ExternalNotificationEvent, IMAGE_NOT_SCANNED_ENGINE_VERSION, Image
|
||||
from data.model.tag import filter_tags_have_repository_event, get_tags_for_image
|
||||
|
@ -13,6 +13,7 @@ from util.secscan.api import (APIRequestFailure, AnalyzeLayerException, MissingP
|
|||
InvalidLayerException, AnalyzeLayerRetryException)
|
||||
from util.morecollections import AttrDict
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
import features
|
||||
import logging
|
||||
|
||||
import features
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
|
Reference in a new issue