You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OutputFormatSetbool// true if --pretty/--json/--html was explicitly passed (not persisted)
23
-
HTMLOutputFilestring// set by --html (not persisted)
24
-
ColorModestring// "auto", "always", "never"
25
-
Verbosebool// --verbose (shortcut for --log-level=debug)
26
-
LogLevelstring// "" = unset; one of "error", "warn", "info", "debug"
27
-
InstallDirstring// --install-dir=DIR base install directory; all non-bootstrap files (logs, hook errors, binary placement) live under this dir. "" w/ InstallDirSet=true means "explicitly disabled" (no file logging).
28
-
InstallDirSetbool// true if --install-dir was passed (empty value = disable file logging for this run)
OutputFormatSetbool// true if --pretty/--json/--html was explicitly passed (not persisted)
23
+
HTMLOutputFilestring// set by --html (not persisted)
24
+
ColorModestring// "auto", "always", "never"
25
+
Verbosebool// --verbose (shortcut for --log-level=debug)
26
+
LogLevelstring// "" = unset; one of "error", "warn", "info", "debug"
27
+
InstallDirstring// --install-dir=DIR base install directory; all non-bootstrap files (logs, hook errors, binary placement) live under this dir. "" w/ InstallDirSet=true means "explicitly disabled" (no file logging).
28
+
InstallDirSetbool// true if --install-dir was passed (empty value = disable file logging for this run)
Copy file name to clipboardExpand all lines: internal/config/config.go
+31-26Lines changed: 31 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -11,36 +11,38 @@ import (
11
11
12
12
// Default placeholders (replaced by backend for enterprise installation scripts).
13
13
var (
14
-
CustomerID="{{CUSTOMER_ID}}"
15
-
APIEndpoint="{{API_ENDPOINT}}"
16
-
APIKey="{{API_KEY}}"
17
-
ScanFrequencyHours="{{SCAN_FREQUENCY_HOURS}}"
18
-
SearchDirs []string
19
-
EnableNPMScan*bool// nil=auto
20
-
EnableBrewScan*bool// nil=auto
21
-
EnablePythonScan*bool// nil=auto
22
-
ColorModestring// "" means auto
23
-
OutputFormatstring// "" means default (pretty)
24
-
HTMLOutputFilestring// "" means not set
25
-
LogLevelstring// "" means default (info); one of error/warn/info/debug
26
-
InstallDirstring// "" means default (~/.stepsecurity); non-empty makes the agent put all its files (logs, hook errors, future state) under this directory. Bootstrap config.json itself stays at the legacy location. Per-run opt-out is the CLI flag --install-dir=. Resolution: --install-dir flag > STEPSECURITY_HOME env > this field > default — see internal/paths.
14
+
CustomerID="{{CUSTOMER_ID}}"
15
+
APIEndpoint="{{API_ENDPOINT}}"
16
+
APIKey="{{API_KEY}}"//#nosec G101 -- build-time placeholder substituted by the backend installer; the literal is not a real credential.
17
+
ScanFrequencyHours="{{SCAN_FREQUENCY_HOURS}}"
18
+
SearchDirs []string
19
+
EnableNPMScan*bool// nil=auto
20
+
EnableBrewScan*bool// nil=auto
21
+
EnablePythonScan*bool// nil=auto
22
+
IncludeTCCProtected*bool// nil=auto (skip when running under macOS launchd, scan otherwise)
23
+
ColorModestring// "" means auto
24
+
OutputFormatstring// "" means default (pretty)
25
+
HTMLOutputFilestring// "" means not set
26
+
LogLevelstring// "" means default (info); one of error/warn/info/debug
27
+
InstallDirstring// "" means default (~/.stepsecurity); non-empty makes the agent put all its files (logs, hook errors, future state) under this directory. Bootstrap config.json itself stays at the legacy location. Per-run opt-out is the CLI flag --install-dir=. Resolution: --install-dir flag > STEPSECURITY_HOME env > this field > default — see internal/paths.
27
28
)
28
29
29
30
// ConfigFile is the JSON structure persisted to ~/.stepsecurity/config.json.
0 commit comments