Skip to content

Commit

Permalink
Prevent naming conflicts by renaming sast value
Browse files Browse the repository at this point in the history
  • Loading branch information
TuanAnh17N committed Feb 28, 2025
1 parent 3f6d2ea commit 70a479f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dso/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ScanArtifact:
class Datasource:
ARTEFACT_ENUMERATOR = 'artefact-enumerator'
BDBA = 'bdba'
SAST_LINT_CHECK = 'sast-lint-check'
SAST = 'sast'
CHECKMARX = 'checkmarx'
CLAMAV = 'clamav'
CC_UTILS = 'cc-utils'
Expand All @@ -67,7 +67,7 @@ def datasource_to_datatypes(datasource: str) -> tuple[str]:
Datatype.STRUCTURE_INFO,
Datatype.RESCORING,
),
Datasource.SAST_LINT_CHECK: (
Datasource.SAST: (
Datatype.ARTEFACT_SCAN_INFO,
Datatype.SAST_FINDING,
Datatype.RESCORING,
Expand Down Expand Up @@ -245,7 +245,7 @@ def datatype_to_datasource(datatype: str) -> str:
Datatype.CODECHECKS_AGGREGATED: Datasource.CHECKMARX,
Datatype.MALWARE_FINDING: Datasource.CLAMAV,
Datatype.DIKI_FINDING: Datasource.DIKI,
Datatype.SAST_FINDING: Datasource.SAST_LINT_CHECK,
Datatype.SAST_FINDING: Datasource.SAST,
}[datatype]


Expand Down

0 comments on commit 70a479f

Please sign in to comment.