Skip to content

Commit 79a1cbb

Browse files
committed
fix: remove leftover APK scan references causing build errors
1 parent 0e8eb6f commit 79a1cbb

2 files changed

Lines changed: 1 addition & 22 deletions

File tree

Modelfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FROM /Users/sallam/.lmstudio/models/unsloth/Qwen3.6-35B-A3B-MTP-GGUF/Qwen3.6-35B-A3B-UD-Q4_K_S.gguf

internal/api/scan_results_api.go

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,7 +1782,6 @@ func apiScanParsedResults(c *gin.Context) {
17821782
c.JSON(http.StatusNotFound, gin.H{"error": err.Error()})
17831783
return
17841784
}
1785-
scanType := strings.ToLower(strings.TrimSpace(scanRec.ScanType))
17861785

17871786
section := strings.ToLower(strings.TrimSpace(c.DefaultQuery("section", "all")))
17881787
limit, _ := strconv.Atoi(c.DefaultQuery("limit", "1200"))
@@ -1890,27 +1889,6 @@ func apiScanParsedResults(c *gin.Context) {
18901889
continue
18911890
}
18921891
}
1893-
if isAPKScan {
1894-
name := strings.ToLower(strings.TrimSpace(e.FileName))
1895-
// Auxiliary metadata files should never be parsed as findings.
1896-
if name == "scan-manifest.json" || name == "cache_info.json" || name == "report-table.json" {
1897-
continue
1898-
}
1899-
ext := strings.ToLower(filepath.Ext(e.FileName))
1900-
// Do not parse rendered report assets as findings rows.
1901-
if ext == ".html" || ext == ".htm" || ext == ".css" || ext == ".js" {
1902-
continue
1903-
}
1904-
// Prefer structured APK findings JSON when present; skip noisy text sidecars.
1905-
if hasApkxFindingsJSON && ext != ".json" {
1906-
continue
1907-
}
1908-
// When findings JSON exists, only parse actual findings JSON files.
1909-
if hasApkxFindingsJSON && ext == ".json" &&
1910-
!(name == "results.json" || strings.Contains(name, "vulnerabilities") || strings.Contains(name, "findings")) {
1911-
continue
1912-
}
1913-
}
19141892
// Read from local file
19151893
raw, _, loadErr := loadFileContent(scanID, e.FileName)
19161894

0 commit comments

Comments
 (0)