Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alpha-omega-security/scrutineer
/ functions
Functions
2,165 in github.com/alpha-omega-security/scrutineer
⨍
Functions
2,165
◇
Types & classes
203
↓ 1 callers
Function
buildTarGz
buildTarGz writes the entries to a gzipped tar archive. Files land at the archive root with 0644; the bundle is meant to be unpacked, inspected, and f
internal/web/finding_bundle.go:187
↓ 1 callers
Function
bulkToastTitle
(created, skipped, invalid int)
internal/web/server.go:1837
↓ 1 callers
Method
bundleEntries
(f *db.Finding, repo *db.Repository)
internal/web/finding_bundle.go:98
↓ 1 callers
Method
cell
()
internal/web/repo_report.go:183
↓ 1 callers
Function
cfgPath
cfgPath returns the path the loader actually used for logging.
cmd/scrutineer/main.go:851
↓ 1 callers
Method
checkAuth
(r *http.Request)
internal/worker/egress.go:188
↓ 1 callers
Function
checkRequiresProfile
(m map[string]any)
internal/skills/parse.go:335
↓ 1 callers
Function
checkRunnerImage
checkRunnerImage compares the pulled runner image against the registry and, when it is stale (a newer build exists and the local one is past the age t
cmd/scrutineer/main.go:519
↓ 1 callers
Function
checkStringList
(m map[string]any, key string)
internal/skills/parse.go:293
↓ 1 callers
Function
classifyTopLevel
classifyTopLevel sorts an object's keys into scalar-shaped (single-row metadata) and array-of-objects (their own section). Arrays of scalars and neste
internal/web/scan_report.go:251
↓ 1 callers
Method
clearCloneError
(scan *db.Scan)
internal/worker/skill.go:355
↓ 1 callers
Method
clearSessionStore
clearSessionStore wipes a finished scan's resume state so its next deliberate re-run starts fresh: it drops the session id and tears down the persiste
internal/worker/worker.go:441
↓ 1 callers
Function
commitReachable
(ctx context.Context, dir, commit string)
internal/worker/repo_cache.go:132
↓ 1 callers
Function
containedPOMPath
(srcRoot, manifestPath string)
internal/worker/skill_parsers.go:371
↓ 1 callers
Function
copyAux
copyAux copies every top-level entry in src other than SKILL.md and schema.json (which are staged from the DB row) into dst, recursively. Delegates to
internal/worker/skill.go:1138
↓ 1 callers
Function
copyFile
(src, dst string, perm os.FileMode)
internal/worker/exposure.go:92
↓ 1 callers
Function
copyFile
(src, dst string)
cmd/scrutineer/backup.go:156
↓ 1 callers
Function
countDBQueries
(t testing.TB, s *Server)
internal/web/list_performance_test.go:133
↓ 1 callers
Function
cvssValue
(k, v string)
internal/web/finding_csaf.go:698
↓ 1 callers
Function
decodeBasic
(enc string)
internal/worker/egress.go:550
↓ 1 callers
Function
depth
(root, path string)
internal/skills/load.go:65
↓ 1 callers
Function
detect
detect decodes just enough structure to tell the supported formats apart. JSON inputs are probed for top-level keys; non-JSON inputs are matched on sh
internal/ingest/ingest.go:142
↓ 1 callers
Function
dispositionCounts
dispositionCounts returns (ruled out, became findings, unresolved). The catalogued count is len(disp).
internal/web/repo_report.go:241
↓ 1 callers
Function
ecosystemMatch
(ecosystems, pms []string)
internal/worker/profile.go:296
↓ 1 callers
Function
ecosystemsFetchedAt
(repo db.Repository, key string)
internal/worker/ecosystems.go:142
↓ 1 callers
Function
ecosystemsSources
()
internal/worker/ecosystems.go:76
↓ 1 callers
Function
emitAssistant
(m *assistantMsg, emit func(Event))
internal/worker/stream.go:173
↓ 1 callers
Method
emitSidecarLogs
emitSidecarLogs captures the egress proxy sidecar's logs (while it still exists) and forwards the noteworthy lines into the scan's event stream. Best-
internal/worker/container.go:948
↓ 1 callers
Method
enqueueFindingDedupForRepo
enqueueFindingDedupForRepo looks up the active finding-dedup skill and enqueues a repository-scoped run. No dedup skill registered means no auto-dedup
internal/web/finding_dedup_enqueue.go:86
↓ 1 callers
Method
enqueueSkill
(ctx context.Context, repoID, skillID uint, model string)
internal/web/server.go:2323
↓ 1 callers
Method
enqueueValidateFixVerify
enqueueValidateFixVerify runs the verify skill finding-scoped against the fix ref for each targeted finding. A missing verify skill degrades to "no re
internal/web/validate_fix_enqueue.go:100
↓ 1 callers
Method
enqueueVerifyForFinding
enqueueVerifyForFinding looks up the active verify skill and enqueues a finding-scoped run, with the same absent-skill, already-queued, and log-but-do
internal/web/revalidate_enqueue.go:139
↓ 1 callers
Function
envOr
envOr returns getenv(key) when non-empty, else def.
cmd/scrutineer/proxy.go:80
↓ 1 callers
Method
exportHandler
()
internal/web/api_export.go:20
↓ 1 callers
Method
extractMetadataKeys
()
internal/skills/parse.go:369
↓ 1 callers
Function
fallbackRequirementResolution
(requirement string)
internal/worker/skill_parsers.go:361
↓ 1 callers
Function
fieldTestValue
fieldTestValue returns a value WriteFindingField will accept for field. Most fields are free text; a few have format constraints.
internal/db/finding_helpers_test.go:351
↓ 1 callers
Method
finalizeScan
finalizeScan persists the terminal/paused scan state, fires post-completion hooks, bulk-pauses the rest of the queue when this scan hit an account-lev
internal/worker/worker.go:534
↓ 1 callers
Method
finding
SARIF lets a result reference its rule by ruleId, by ruleIndex into tool.driver.rules, or both. Some emitters set only ruleIndex, so fall back to it w
internal/ingest/sarif.go:129
↓ 1 callers
Method
findingBundleDownload
findingBundleDownload writes a tar.gz containing every per-finding export scrutineer produces (OSV, CSAF, markdown report, patch.diff when one is on f
internal/web/finding_bundle.go:53
↓ 1 callers
Function
findingTimeFieldAccessor
findingTimeFieldAccessor mirrors findingFieldAccessor for timestamp columns. Same closed-list pattern: adding a new editable timestamp means adding a
internal/db/finding_helpers.go:136
↓ 1 callers
Method
findingsIndexQuery
(r *http.Request, includeScanners, includeMissed bool)
internal/web/server.go:945
↓ 1 callers
Function
finishErroredScan
(scan *db.Scan, report string, err error, emit func(Event))
internal/worker/worker.go:633
↓ 1 callers
Function
finishScan
(ctx context.Context, scan *db.Scan, report string, err error, timeout time.Duration, emit func(Event))
internal/worker/worker.go:613
↓ 1 callers
Function
firstContactURL
(e *cnaEntry)
internal/worker/cna.go:130
↓ 1 callers
Function
firstEmail
(e *cnaEntry)
internal/worker/cna.go:119
↓ 1 callers
Function
firstLine
(s string)
internal/worker/patch_gate.go:222
↓ 1 callers
Function
firstLine
(lines string)
internal/web/location.go:51
↓ 1 callers
Function
firstModelContaining
(needle string)
internal/web/models.go:167
↓ 1 callers
Method
fixValidationVerdicts
fixValidationVerdicts collects, for each baseline finding that had a verify run against the fix ref, that verify's reproduction-level verdict. Finding
internal/web/validate_fix_enqueue.go:203
↓ 1 callers
Function
forgeBlobURL
forgeBlobURL builds a link to one file at a specific commit on the forge web UI. Returns "" when the host is not one of the four recognised forges, wh
internal/web/forge_link.go:51
↓ 1 callers
Function
forgeCommitURL
forgeCommitURL builds a link to one commit on the forge web UI. The path segment differs by host: Bitbucket uses /commits/<sha> (plural), the others u
internal/web/forge_link.go:94
↓ 1 callers
Function
formatUSD
formatUSD renders a dollar amount with enough precision that the cheap metadata-style scans (fractions of a cent) don't all read as $0.00, while keepi
internal/web/server.go:2561
↓ 1 callers
Function
formatValidationError
formatValidationError flattens a jsonschema validation error into one line per leaf failure as "/json/pointer: message". The library's BasicOutput alr
internal/worker/schema_validate.go:68
↓ 1 callers
Function
freeformHeading
(top map[string]any, kind string)
internal/web/scan_report.go:233
↓ 1 callers
Method
gatewayDialHost
gatewayDialHost is the address HostGatewayAlias resolves to when dialing. "" (the host-proxy default) means 127.0.0.1, preserving the loopback rewrite
internal/worker/egress.go:364
↓ 1 callers
Function
getOSVSchema
getOSVSchema returns the compiled validator, building it on first call.
internal/web/finding_osv.go:46
↓ 1 callers
Function
gitApplyCheck
(srcDir, diff string)
internal/worker/patch_gate.go:202
↓ 1 callers
Function
groupDeps
(deps []db.Dependency)
internal/web/server.go:2443
↓ 1 callers
Method
handleCloneError
(scan *db.Scan, err error, emit func(Event))
internal/worker/skill.go:343
↓ 1 callers
Method
hasEverBeenReportedOrAcknowledged
hasEverBeenReportedOrAcknowledged checks if the finding ever reached reported or acknowledged status.
internal/worker/skill.go:721
↓ 1 callers
Method
hasOpenRepoScopedScan
hasOpenRepoScopedScan returns true when a queued or running repository-scoped scan (no finding attached) of the given skill already exists for the rep
internal/web/finding_dedup_enqueue.go:103
↓ 1 callers
Method
hasOpenRevalidate
hasOpenRevalidate returns true when a queued or running revalidate scan already exists for the finding. Avoids piling duplicate work onto the queue wh
internal/web/revalidate_enqueue.go:80
↓ 1 callers
Method
hash
(skillMD []byte)
internal/skills/parse.go:436
↓ 1 callers
Function
hashPath
(s string)
cmd/scrutineer/main.go:578
↓ 1 callers
Function
headLine
(s string)
internal/web/threat_workbench.go:309
↓ 1 callers
Function
hostOf
hostOf returns the host component of raw, used as the Tool name when the export carries a per-finding URL but no explicit producer field.
internal/ingest/csv.go:131
↓ 1 callers
Function
humanDuration
(d time.Duration)
internal/web/server.go:2529
↓ 1 callers
Method
importFallback
importFallback routes a payload that matched no supported format to the ingest skill. The raw bytes ride on the Scan row and the worker stages them in
internal/web/import.go:117
↓ 1 callers
Method
importResult
(res ingest.Result, repoOverride string, revalidate bool)
internal/web/import.go:174
↓ 1 callers
Function
importRevalidate
importRevalidate reads the ?revalidate= toggle that controls whether each newly-imported finding is fed into the revalidate -> verify funnel. Absent m
internal/web/import.go:96
↓ 1 callers
Function
init
()
internal/web/static/app.js:35
↓ 1 callers
Function
inlineGmailStyles
inlineGmailStyles rewrites goldmark's output so the formatting survives a paste into Gmail. Code blocks are collapsed to a single styled <pre> (the ne
internal/web/finding_disclosure.go:33
↓ 1 callers
Function
installRestore
installRestore copies src over the database at dbPath. It writes a temp file first, then removes the WAL sidecars, then renames into place, so the liv
cmd/scrutineer/backup.go:138
↓ 1 callers
Function
intVal
intVal extracts an int from an untyped JSON value. encoding/json decodes numbers as float64 by default; ruled_out.step is documented as an integer so
internal/web/repo_report.go:687
↓ 1 callers
Function
isEmptyJSONValue
isEmptyJSONValue returns true for the JSON values that carry no information — "", [], {}, null. Numbers and booleans are always counted as content, on
internal/db/db.go:1014
↓ 1 callers
Function
isFindingsCSV
(data []byte)
internal/ingest/csv.go:17
↓ 1 callers
Function
isFindingsMarkdown
Findings-markdown export shape: each finding is an H1 title followed by H2 sections (Details, Location, Impact, Reproduction steps, Recommended fix) a
internal/ingest/markdown.go:16
↓ 1 callers
Function
isFreeformCellValue
isFreeformCellValue tells writeArraySection whether a value fits in a single markdown table cell. Strings, numbers, booleans, and short lists of those
internal/web/scan_report.go:404
↓ 1 callers
Function
isMavenPOMDependency
(dep dependencyReportRow)
internal/worker/skill_parsers.go:328
↓ 1 callers
Function
isSQLiteFile
isSQLiteFile reports whether path begins with the SQLite file magic, so restore refuses to clobber the live database with a non-database file. A file
cmd/scrutineer/backup.go:181
↓ 1 callers
Function
joinLocation
(path, line string)
internal/ingest/csv.go:112
↓ 1 callers
Function
keys
(m map[string]V)
internal/web/finding_bundle_test.go:223
↓ 1 callers
Function
lastModelContaining
(needle string)
internal/web/models.go:176
↓ 1 callers
Function
latestDeepDive
latestDeepDive returns the most recent done security-deep-dive scan for the repo plus its parsed report JSON (if any).
internal/web/repo_report.go:129
↓ 1 callers
Method
latestDepsCommit
latestDepsCommit returns the commit of the latest successful dependencies scan: the run that owns the current Dependency rows (parseDependenciesOutput
internal/web/server.go:2074
↓ 1 callers
Method
latestPatchScan
latestPatchScan returns the most recent done patch-skill scan for a finding along with its parsed report. Returns (nil, nil, nil) when no patch scan h
internal/web/finding_patch.go:28
↓ 1 callers
Function
latestScanFindings
latestScanFindings loads the findings produced by one scan, for resolving sink dispositions. Inventory sink ids (S1, S2, …) are only unique within a s
internal/web/repo_report.go:163
↓ 1 callers
Function
loadReportFindings
loadReportFindings mirrors the repo page Findings tab: open deep-dive findings (closed lifecycles excluded, as the tab does), ordered Critical-first t
internal/web/repo_report.go:147
↓ 1 callers
Method
loadSchema
()
internal/skills/parse.go:428
↓ 1 callers
Function
loadSkills
loadSkills loads local skill directories and, if a remote skills repo is configured, clones/pulls it at the requested ref and loads it too. Returns th
cmd/scrutineer/main.go:541
↓ 1 callers
Function
localPOMParentsStayUnderRoot
(rootPath, srcRoot string)
internal/worker/skill_parsers.go:391
↓ 1 callers
Function
localRunnerImage
localRunnerImage reads the locally stored runner image's registry digest and build timestamp via `image inspect`. The RepoDigest is the manifest the i
internal/worker/staleness.go:91
↓ 1 callers
Method
location
()
internal/ingest/sarif.go:149
↓ 1 callers
Method
logFlushInterval
()
internal/worker/worker.go:256
↓ 1 callers
Function
logRequests
(log *slog.Logger, h http.Handler)
internal/web/server.go:2611
↓ 1 callers
Function
main
()
skills/maintainers/scripts/summarise.py:26
↓ 1 callers
Function
main
()
skills/zizmor/scripts/scan.py:26
↓ 1 callers
Function
main
()
skills/semgrep/scripts/scan.py:55
↓ 1 callers
Function
mapKeys
(m map[string]any)
internal/web/finding_osv_test.go:162
← previous
next →
701–800 of 2,165, ranked by callers