Skip to content

Commit

Permalink
#1902 Include zap-automation-framework in telemetry and persistence-…
Browse files Browse the repository at this point in the history
…defectdojo

Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
  • Loading branch information
Ilyesbdlala committed May 8, 2024
1 parent 0ac76c9 commit 413550e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public enum ScanNameMapping {
ZAP_FULL_SCAN("zap-full-scan", ScanType.ZAP_SCAN),
ZAP_ADVANCED_SCAN("zap-advanced-scan", ScanType.ZAP_SCAN),
ZAP_AUTOMATION_SCAN("zap-automation-scan", ScanType.ZAP_SCAN),
ZAP_AUTOMATION_FRAMEWORK("zap-automation-framework", ScanType.ZAP_SCAN),
SSLYZE("sslyze", ScanType.SSLYZE_SCAN),
TRIVY_IMAGE("trivy-image", ScanType.TRIVY_SCAN),
TRIVY_IMAGE_AUTODISCOVERY("trivy-image-autodiscovery", ScanType.TRIVY_SCAN),
Expand Down
59 changes: 30 additions & 29 deletions operator/internal/telemetry/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,35 +24,36 @@ var telemetryInterval = 24 * time.Hour
// officialScanTypes contains the list of official secureCodeBox Scan Types.
// Unofficial Scan Types should be reported as "other" to avoid leakage of confidential data via the scan-types name
var officialScanTypes map[string]bool = map[string]bool{
"amass": true,
"cmseek": true,
"doggo": true,
"ffuf": true,
"git-repo-scanner": true,
"gitleaks": true,
"kube-hunter": true,
"kubeaudit": true,
"ncrack": true,
"nikto": true,
"nmap": true,
"nuclei": true,
"screenshooter": true,
"semgrep": true,
"ssh-audit": true,
"ssh-scan": true,
"sslyze": true,
"trivy-image": true,
"trivy-filesystem": true,
"trivy-repo": true,
"trivy-sbom-image": true,
"typo3scan": true,
"whatweb": true,
"wpscan": true,
"zap-baseline-scan": true,
"zap-api-scan": true,
"zap-full-scan": true,
"zap-automation-scan": true,
"zap-advanced-scan": true,
"amass": true,
"cmseek": true,
"doggo": true,
"ffuf": true,
"git-repo-scanner": true,
"gitleaks": true,
"kube-hunter": true,
"kubeaudit": true,
"ncrack": true,
"nikto": true,
"nmap": true,
"nuclei": true,
"screenshooter": true,
"semgrep": true,
"ssh-audit": true,
"ssh-scan": true,
"sslyze": true,
"trivy-image": true,
"trivy-filesystem": true,
"trivy-repo": true,
"trivy-sbom-image": true,
"typo3scan": true,
"whatweb": true,
"wpscan": true,
"zap-baseline-scan": true,
"zap-api-scan": true,
"zap-full-scan": true,
"zap-automation-scan": true,
"zap-automation-framework": true,
"zap-advanced-scan": true,
}

// telemetryData submitted by operator
Expand Down

0 comments on commit 413550e

Please sign in to comment.