Skip to content

Commit

Permalink
BST-6424: Remove scan-types for server-side scanners (#42)
Browse files Browse the repository at this point in the history
Server-side scanners scan-types are defined in the backend, having them
defined in the module file is not needed.
  • Loading branch information
ledo01 authored Jun 30, 2023
1 parent 46e7400 commit ccc03dc
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion boostsec/registry_validator/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class ModuleBaseSchema(BaseModel):

name: str
namespace: str
scan_types: list[ScanType] = Field(..., min_items=1)


class ModuleConfigSchema(BaseModel):
Expand All @@ -38,6 +37,7 @@ class ModuleSchema(ModuleBaseSchema):
id_: str = Field(..., alias="id")
config: ModuleConfigSchema
steps: list[Any] # steps aren't currently validated
scan_types: list[ScanType] = Field(..., min_items=1)


class ServerSideModuleSchema(ModuleBaseSchema):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
name: Simple Scanner
namespace: boostsecurityio/simple-scanner
scan_types:
- sast
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
name: Duplicate Module
namespace: invalids/duplicate-module
scan_types:
- sast
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
name: Duplicate Module
namespace: invalids/duplicate-module
scan_types:
- sast

Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
name: Empty Rules
namespace: invalids/empty-rules
scan_types:
- sast
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
name: Missing Namespace
scan_types:
- sast

0 comments on commit ccc03dc

Please sign in to comment.