Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-20 21:42:06 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-20 21:42:06 +0300
commit6e4e1050d9dba2b7b2523fdd1768823ab85feef4 (patch)
tree78be5963ec075d80116a932011d695dd33910b4e /app/validators
parent1ce776de4ae122aba3f349c02c17cebeaa8ecf07 (diff)
Add latest changes from gitlab-org/gitlab@13-3-stable-ee
Diffstat (limited to 'app/validators')
-rw-r--r--app/validators/html_safety_validator.rb2
-rw-r--r--app/validators/json_schemas/security_ci_configuration_schemas/sast_ui_schema.json83
2 files changed, 25 insertions, 60 deletions
diff --git a/app/validators/html_safety_validator.rb b/app/validators/html_safety_validator.rb
index 29e7d445697..6ba009fa534 100644
--- a/app/validators/html_safety_validator.rb
+++ b/app/validators/html_safety_validator.rb
@@ -21,7 +21,7 @@ class HtmlSafetyValidator < ActiveModel::EachValidator
end
def self.error_message
- _("cannot contain HTML/XML tags, including any word between angle brackets (<,>).")
+ _("cannot contain HTML/XML tags, including any word between angle brackets (&lt;,&gt;).")
end
private
diff --git a/app/validators/json_schemas/security_ci_configuration_schemas/sast_ui_schema.json b/app/validators/json_schemas/security_ci_configuration_schemas/sast_ui_schema.json
index 1154a4c45b8..995f2ad6616 100644
--- a/app/validators/json_schemas/security_ci_configuration_schemas/sast_ui_schema.json
+++ b/app/validators/json_schemas/security_ci_configuration_schemas/sast_ui_schema.json
@@ -4,83 +4,48 @@
"field" : "SECURE_ANALYZERS_PREFIX",
"label" : "Image prefix",
"type": "string",
- "default_value": "registry.gitlab.com/gitlab-org/security-products/analyzers",
- "value": ""
+ "default_value": "",
+ "value": "",
+ "size": "MEDIUM",
+ "description": "Analyzer image's registry prefix (or Name of the registry providing the analyzers' image)"
},
{
"field" : "SAST_EXCLUDED_PATHS",
"label" : "Excluded Paths",
"type": "string",
- "default_value": "spec, test, tests, tmp",
- "value": ""
+ "default_value": "",
+ "value": "",
+ "size": "LARGE",
+ "description": "Comma-separated list of paths to be excluded from analyzer output. Patterns can be globs, file paths, or folder paths."
},
{
- "field" : "SECURE_ANALYZER_IMAGE_TAG",
+ "field" : "SAST_ANALYZER_IMAGE_TAG",
"label" : "Image tag",
"type": "string",
- "options": [],
- "default_value": "2",
- "value": ""
- },
- {
- "field" : "SAST_DISABLED",
- "label" : "Disable SAST",
- "type": "options",
- "options": [
- {
- "value" :"true",
- "label" : "true (disables SAST)"
- },
- {
- "value":"false",
- "label":"false (enables SAST)"
- }
- ],
- "default_value": "false",
- "value": ""
+ "default_value": "",
+ "value": "",
+ "size": "SMALL",
+ "description": "Analyzer image's tag"
}
],
"pipeline": [
{
"field" : "stage",
"label" : "Stage",
- "type": "dropdown",
- "options": [
- {
- "value" :"test",
- "label" : "test"
- },
- {
- "value":"build",
- "label":"build"
- }
- ],
- "default_value": "test",
- "value": ""
- },
- {
- "field" : "allow_failure",
- "label" : "Allow Failure",
- "type": "options",
- "options": [
- {
- "value" :"true",
- "label" : "Allows pipeline failure"
- },
- {
- "value": "false",
- "label": "Does not allow pipeline failure"
- }
- ],
- "default_value": "true",
- "value": ""
+ "type": "string",
+ "default_value": "",
+ "value": "",
+ "size": "MEDIUM",
+ "description": "Pipeline stage in which the scan jobs run"
},
{
- "field" : "rules",
- "label" : "Rules",
- "type": "multiline",
+ "field" : "SEARCH_MAX_DEPTH",
+ "label" : "Search maximum depth",
+ "type": "string",
"default_value": "",
- "value": ""
+ "value": "",
+ "size": "SMALL",
+ "description": "Maximum depth of language and framework detection"
}
],
"analyzers": [