Skip to content
Skip to content
Documentation

Environment variables

This page is generated from the code that reads each variable by scripts/generate_env_var_reference.py. Edits made to this file by hand are overwritten the next time it is generated.

ASH reads 173 environment variables: 63 of its own (ASH_ prefix) and 110 set by other tools or the platform. The tables list every place each one is read. A variable that sets a CLI option links to that option; the option on the command line takes precedence over the variable.

Columns:

  • Default: the value the code uses when the variable is unset, as written in the code, at each read that supplies one. Where none does, or the only one is an empty string, it is the default of the CLI option the variable sets, or of the configuration key it is the default of. Blank means none of these supplies one (the code checks whether the variable is set, or treats unset as empty).
  • Container image: the value the ASH container image sets, from an ENV line in the Dockerfile, and the build stage that sets it.
  • Read at: the file of each read and the function, method or script function it is in, or module level or top level when it is in none. ash and utils/ are the shell and PowerShell entry scripts; everything else is the Python package.
  • Purpose: the option's help text, or the code comment or docstring at the read, quoted with the file and function it is in. "Purpose not documented in code." means the code around the read does not say.

ASH variables

Variable Default Container image Read at Purpose
ASH_ACTUAL_OUTPUT_DIR self._context.output_dir.as_posix()
display_path(opts.output_dir)
automated_security_helper/core/execution_engine.py (ScanExecutionEngine.execute_phases)
automated_security_helper/interactions/run_ash_scan.py (_print_summary, _print_workspace_summary)
automated_security_helper/utils/scan_output_dirs.py (_host_output_dir_in_the_tree)
The single-scan summary's rule (display_path): relative to the working directory, else absolute, and the host's path inside the container image. (automated_security_helper/interactions/run_ash_scan.py, _print_workspace_summary)
ASH_ACTUAL_SOURCE_DIR self._context.source_dir.as_posix() automated_security_helper/core/execution_engine.py (ScanExecutionEngine.execute_phases)
automated_security_helper/utils/scan_output_dirs.py (_host_output_dir_in_the_tree)
automated_security_helper/utils/scan_source.py (_started_by_the_launcher)
Set by ASH's container launcher (run_ash_container): the host's source and output directories, mounted at /src and /out. (automated_security_helper/utils/scan_output_dirs.py)
ASH_ALLOW_IN_TREE_TOOLS automated_security_helper/utils/subprocess_utils.py (in_tree_tools_allowed) The environment variable that lets ASH start a tool from inside the scanned tree. Read from the process environment only, which belongs to the operator. (automated_security_helper/utils/subprocess_utils.py)
ASH_BASELINE not set automated_security_helper/cli/scan.py (run_ash_scan_cli_command)
automated_security_helper/express/client.py (_delegated_exit_code)
Sets ash scan --baseline. Leave out findings already present in this saved ash_aggregated_results.json from a full scan (for example the default branch's), so the reports, the summary and the exit code count only new findings. Matching tolerates findings that only moved lines. The file must be outside the scanned checkout and the output directory. Supported with --mode local and precommit only (exit 5 otherwise).
ASH_BASE_IMAGE_OVERRIDE "" ash (top level)
automated_security_helper/interactions/run_ash_container.py (_build_image, run_ash_container)
utils/ash_helpers.ps1 (Invoke-ASH)
ASH_BASE_IMAGE_OVERRIDE redirects FROM ${BASE_IMAGE} at the registry that actually answered, and is set by .github/actions/prepull-base-image when ECR Public refuses the base image and Docker Hub serves it instead. (automated_security_helper/interactions/run_ash_container.py, _build_image)
ASH_BASE_OCI_LAYOUT "" ash (top level)
automated_security_helper/interactions/run_ash_container.py (_base_oci_layout_args)
utils/ash_helpers.ps1 (Invoke-ASH)
ASH_BASE_OCI_LAYOUT=<layout dir>@<arch manifest digest> is set by .github/actions/prepull-base-image on a cache hit, after it has verified every blob in the layout against the Dockerfile's pinned digest. (automated_security_helper/interactions/run_ash_container.py, _base_oci_layout_args)
ASH_BASE_REF origin/main automated_security_helper/cli/scan.py (run_ash_scan_cli_command) Sets ash scan --base-ref. Git ref to diff against when --changed-files-only is set.
ASH_BEDROCK_MAX_TOKENS 4000 automated_security_helper/plugin_modules/ash_aws_plugins/bedrock_summary_reporter.py (BedrockSummaryReporterConfigOptions, _read_ash_bedrock_defaults) Sets the default of reporters.bedrock-summary-reporter.options.max_tokens.
ASH_BEDROCK_MODEL_ID ""
us.anthropic.claude-3-7-sonnet-20250219-v1:0
automated_security_helper/config/ash_config.py (reporter_default_values)
automated_security_helper/plugin_modules/ash_aws_plugins/bedrock_summary_reporter.py (BedrockSummaryReporterConfigOptions, _read_ash_bedrock_defaults)
Sets the default of reporters.bedrock-summary-reporter.options.model_id.
ASH_BEDROCK_TEMPERATURE 0.5 automated_security_helper/plugin_modules/ash_aws_plugins/bedrock_summary_reporter.py (BedrockSummaryReporterConfigOptions, _read_ash_bedrock_defaults) Sets the default of reporters.bedrock-summary-reporter.options.temperature.
ASH_BIN_PATH ~/.ash/bin ${ASH_BIN_PATH} (core) automated_security_helper/cli/dependencies.py (install_dependencies)
automated_security_helper/core/constants.py (ash_bin_path_from_environment)
automated_security_helper/utils/subprocess_utils.py (_lookup)
automated_security_helper/utils/uv_tool_runner.py (_lookup_key)
Sets ash dependencies install --bin-path. Path to install binaries to.
ASH_CFN_GUARD_RULES_DIR /usr/share/ash/cfn-guard-rules (core) automated_security_helper/utils/rules_bundles.py (rules_root) Environment variable naming the directory rules bundles are installed under. (automated_security_helper/utils/rules_bundles.py)
ASH_CHANGED_FILES_ONLY off automated_security_helper/cli/scan.py (run_ash_scan_cli_command) Sets ash scan --changed-files-only. Report only findings in files changed between --base-ref and HEAD, for example on a pull request. Scanners still scan every file; findings located in other files are dropped from every report, the summary counts and the exit code. Findings with no file location are kept. When git cannot list the changes, everything is reported; when nothing changed inside --source-dir, nothing is. Not supported with --mode container, which refuses it (exit 5).
ASH_CLOUDWATCH_LOG_GROUP_NAME null (the default of reporters.cloudwatch-logs.options.log_group_name) automated_security_helper/config/ash_config.py (reporter_default_values)
automated_security_helper/plugin_modules/ash_aws_plugins/cloudwatch_logs_reporter.py (CloudWatchLogsReporterConfigOptions)
Sets the default of reporters.cloudwatch-logs.options.log_group_name.
ASH_CONFIG not set ash (top level)
automated_security_helper/cli/config.py (_refused_file_label, get, init, lint, update, validate, validate_plugin_dependencies, wizard)
automated_security_helper/cli/dependencies.py (install_dependencies)
automated_security_helper/cli/image.py (build_ash_image_cli_command)
automated_security_helper/cli/inspect/inspect_findings_app.py (findings_command)
automated_security_helper/cli/mcp/__init__.py (_ash_config_refusal)
automated_security_helper/cli/merge.py (merge_command)
automated_security_helper/cli/plugin.py (list_plugins)
automated_security_helper/cli/report.py (_named_config_files, _refused_config_name, report_command)
automated_security_helper/cli/scan.py (run_ash_scan_cli_command)
automated_security_helper/config/config_validator.py (ConfigValidator._ash_config_check)
automated_security_helper/config/default_config.py (_ash_config_file, default_config_document, default_config_document_for_tree, get_default_config)
automated_security_helper/config/named_config.py (refuse_a_named_config_that_does_not_exist)
automated_security_helper/config/resolve_config.py (_resolve_config, resolve_config)
automated_security_helper/interactions/run_ash_container.py (_host_ash_config)
automated_security_helper/interactions/run_ash_scan.py (_ash_config_fallback, _gate_has_a_schema_to_judge, _nix_inner_argv, _outer_mode_config_load, _refuse_a_named_config_that_is_not_a_file, run_ash_scan)
utils/ash_helpers.ps1 (Invoke-ASH)
Sets ash build-image --config. The path to the configuration file. By default, ASH looks for the following config file names in the source directory of a scan: ['.ash.yml', '.ash.yaml', '.ash.json', 'ash.yml', 'ash.yaml', 'ash.json'] (each at the root, then in .ash/), then ['.ashrc.toml', '.ashrc.yaml', '.ashrc.yml', '.ashrc.json', 'ashrc.toml', 'ashrc.yaml', 'ashrc.yml', 'ashrc.json'] at the root, then the tool.ash table of pyproject.toml at the root; the first found is used. Alternatively, the full path to a config file can be provided by setting the ASH_CONFIG environment variable before running ASH.
Sets ash config get --config. The path to the configuration file. By default, the config a scan of --source-dir would use (the current directory when --source-dir is not given): ['.ash.yml', '.ash.yaml', '.ash.json', 'ash.yml', 'ash.yaml', 'ash.json'] (each at the root, then in .ash/), then ['.ashrc.toml', '.ashrc.yaml', '.ashrc.yml', '.ashrc.json', 'ashrc.toml', 'ashrc.yaml', 'ashrc.yml', 'ashrc.json'] at the root, then the tool.ash table of pyproject.toml at the root; the first found is used.
Sets ash config init --config. Where to write the new config file. By default .ashrc.yaml in the current directory, a name a scan of that directory reads. Discovery reads these names: ['.ash.yml', '.ash.yaml', '.ash.json', 'ash.yml', 'ash.yaml', 'ash.json'] (each at the root, then in .ash/), then ['.ashrc.toml', '.ashrc.yaml', '.ashrc.yml', '.ashrc.json', 'ashrc.toml', 'ashrc.yaml', 'ashrc.yml', 'ashrc.json'] at the root, then the tool.ash table of pyproject.toml at the root; the first found is used. Can also be set with the ASH_CONFIG environment variable.
Sets ash config lint --config. The path to the configuration file. By default, the config a scan of --source-dir would use (the current directory when --source-dir is not given): ['.ash.yml', '.ash.yaml', '.ash.json', 'ash.yml', 'ash.yaml', 'ash.json'] (each at the root, then in .ash/), then ['.ashrc.toml', '.ashrc.yaml', '.ashrc.yml', '.ashrc.json', 'ashrc.toml', 'ashrc.yaml', 'ashrc.yml', 'ashrc.json'] at the root, then the tool.ash table of pyproject.toml at the root; the first found is used.
Sets ash config update --config. The path to the configuration file. By default, the config a scan of --source-dir would use (the current directory when --source-dir is not given): ['.ash.yml', '.ash.yaml', '.ash.json', 'ash.yml', 'ash.yaml', 'ash.json'] (each at the root, then in .ash/), then ['.ashrc.toml', '.ashrc.yaml', '.ashrc.yml', '.ashrc.json', 'ashrc.toml', 'ashrc.yaml', 'ashrc.yml', 'ashrc.json'] at the root, then the tool.ash table of pyproject.toml at the root; the first found is used.
Sets ash config validate --config. The path to the configuration file. By default, the config a scan of --source-dir would use (the current directory when --source-dir is not given): ['.ash.yml', '.ash.yaml', '.ash.json', 'ash.yml', 'ash.yaml', 'ash.json'] (each at the root, then in .ash/), then ['.ashrc.toml', '.ashrc.yaml', '.ashrc.yml', '.ashrc.json', 'ashrc.toml', 'ashrc.yaml', 'ashrc.yml', 'ashrc.json'] at the root, then the tool.ash table of pyproject.toml at the root; the first found is used.
Sets ash config validate-plugin-dependencies --config. The path to the configuration file. By default, the config a scan of --source-dir would use (the current directory when --source-dir is not given): ['.ash.yml', '.ash.yaml', '.ash.json', 'ash.yml', 'ash.yaml', 'ash.json'] (each at the root, then in .ash/), then ['.ashrc.toml', '.ashrc.yaml', '.ashrc.yml', '.ashrc.json', 'ashrc.toml', 'ashrc.yaml', 'ashrc.yml', 'ashrc.json'] at the root, then the tool.ash table of pyproject.toml at the root; the first found is used.
Sets ash config wizard --config. Path to read/write the configuration file. By default, the config a scan of --source-dir would use (the current directory when --source-dir is not given), or a new .ashrc.yaml in that directory when there is none.
Sets ash dependencies install --config. The path to the configuration file. By default, ASH looks for the following config file names in the source directory of a scan: ['.ash.yml', '.ash.yaml', '.ash.json', 'ash.yml', 'ash.yaml', 'ash.json'] (each at the root, then in .ash/), then ['.ashrc.toml', '.ashrc.yaml', '.ashrc.yml', '.ashrc.json', 'ashrc.toml', 'ashrc.yaml', 'ashrc.yml', 'ashrc.json'] at the root, then the tool.ash table of pyproject.toml at the root; the first found is used. Alternatively, the full path to a config file can be provided by setting the ASH_CONFIG environment variable before running ASH.
Sets ash inspect findings --config. Path to the configuration file where suppressions should be saved. By default, ASH searches for ['.ash.yml', '.ash.yaml', '.ash.json', 'ash.yml', 'ash.yaml', 'ash.json'] (each at the root, then in .ash/), then ['.ashrc.toml', '.ashrc.yaml', '.ashrc.yml', '.ashrc.json', 'ashrc.toml', 'ashrc.yaml', 'ashrc.yml', 'ashrc.json'] at the root, then the tool.ash table of pyproject.toml at the root; the first found is used in the scanned directory (the one holding the results' .ash/ash_output), or in the current directory when the results sit elsewhere. With none found, suppressions go to a new .ashrc.yaml there.
Sets ash merge --config. The operator's config file. Its values replace the shards' for the settings a shard's recorded config cannot choose, such as where reporters send findings and which off-host reporters run. Its ash_plugin_modules are the plugin modules the merge loads, with any --config-overrides adds; a module only the shards recorded is not loaded. It adds no reporter section the shards did not record; use --config-overrides for that.
Sets ash plugin list --config. The path to the configuration file. By default, ASH looks for the following config file names in the source directory of a scan: ['.ash.yml', '.ash.yaml', '.ash.json', 'ash.yml', 'ash.yaml', 'ash.json'] (each at the root, then in .ash/), then ['.ashrc.toml', '.ashrc.yaml', '.ashrc.yml', '.ashrc.json', 'ashrc.toml', 'ashrc.yaml', 'ashrc.yml', 'ashrc.json'] at the root, then the tool.ash table of pyproject.toml at the root; the first found is used. Alternatively, the full path to a config file can be provided by setting the ASH_CONFIG environment variable before running ASH.
Sets ash report --config. The path to the configuration file. By default, ASH looks for the following config file names in the source directory of a scan: ['.ash.yml', '.ash.yaml', '.ash.json', 'ash.yml', 'ash.yaml', 'ash.json'] (each at the root, then in .ash/), then ['.ashrc.toml', '.ashrc.yaml', '.ashrc.yml', '.ashrc.json', 'ashrc.toml', 'ashrc.yaml', 'ashrc.yml', 'ashrc.json'] at the root, then the tool.ash table of pyproject.toml at the root; the first found is used. Alternatively, the full path to a config file can be provided by setting the ASH_CONFIG environment variable before running ASH.
Sets ash scan --config. The path to the configuration file. By default, ASH looks for the following config file names in the source directory of a scan: ['.ash.yml', '.ash.yaml', '.ash.json', 'ash.yml', 'ash.yaml', 'ash.json'] (each at the root, then in .ash/), then ['.ashrc.toml', '.ashrc.yaml', '.ashrc.yml', '.ashrc.json', 'ashrc.toml', 'ashrc.yaml', 'ashrc.yml', 'ashrc.json'] at the root, then the tool.ash table of pyproject.toml at the root; the first found is used. Alternatively, the full path to a config file can be provided by setting the ASH_CONFIG environment variable before running ASH.
ASH_DEBUG ""
NO
automated_security_helper/cli/scan.py (run_ash_scan_cli_command)
automated_security_helper/core/execution_engine.py (ScanExecutionEngine.__init__)
automated_security_helper/interactions/run_ash_scan.py (_env_flag)
utils/common.sh (debug_echo, debug_show_tree)
Sets ash scan --debug. Enable debug logging. Any log flag on the command line overrides ASH_DEBUG.
ASH_DEBUG_SHOW_LOCALS NO automated_security_helper/utils/log.py (_show_locals_requested) ASH_DEBUG_SHOW_LOCALS asks for them, for a maintainer debugging on their own machine. (automated_security_helper/utils/log.py, show_debug_locals)
ASH_DEFAULT_SEVERITY_LEVEL MEDIUM (the default of global_settings.severity_threshold) automated_security_helper/core/constants.py (module level) Sets the default of global_settings.severity_threshold.
ASH_DEPENDENCIES_UNKNOWN_TOOLS "" automated_security_helper/cli/dependencies.py (install_dependencies) Exactly skip, as the docs say: not a value that only strips to it. (automated_security_helper/cli/dependencies.py, install_dependencies)
ASH_DETECT_SECRETS_REFUSE_HTTP automated_security_helper/utils/detect_secrets_worker.py (module level) Only as the worker itself (python -m) or as a spawned pool process, which imports the worker as __mp_main__. ASH imports this module for REFUSE_HTTP_ENV, and the variable must not turn off HTTP in ASH's own process. (automated_security_helper/utils/detect_secrets_worker.py)
ASH_DISABLE_GHA_BUILD_CACHE "" automated_security_helper/interactions/run_ash_container.py (_gha_layer_cache_args) Purpose not documented in code.
ASH_DOWNLOAD_MAX_ATTEMPTS automated_security_helper/utils/download_utils.py (_download_retry_policy) The exponent is bounded as well as the result: 2 ** (attempt - 1) as an int converted to float raises OverflowError past 2 ** 1023, so with ASH_DOWNLOAD_MAX_ATTEMPTS above that the backoff replaced the download error with its own. (automated_security_helper/utils/download_utils.py, _retry_delay)
ASH_DOWNLOAD_RETRY_DELAY automated_security_helper/utils/download_utils.py (_download_retry_policy) Purpose not documented in code.
ASH_EXCLUDED_SCANNERS not set automated_security_helper/cli/scan.py (run_ash_scan_cli_command) Sets ash scan --exclude-scanners. Specific scanner names to exclude from running. Takes precedence over scanners parameter.
ASH_EXPRESS_CHILD automated_security_helper/express/client.py (_delegated_exit_code) ASH_EXPRESS_CHILD (the spelling behind runtime.CHILD_ENV) is set in every forked scan child's environment, so a scan already running inside the daemon never delegates to the daemon again. (automated_security_helper/express/client.py, _delegated_exit_code)
ASH_EXPRESS_IDLE_SECONDS "" automated_security_helper/express/runtime.py (idle_seconds) Environment variable that overrides :data:DEFAULT_IDLE_SECONDS for ash express start and for the daemon an autostart spawns. (automated_security_helper/express/runtime.py)
ASH_GHA_BUILD_CACHE_EXPORT "" automated_security_helper/interactions/run_ash_container.py (_gha_layer_cache_args) Which layers to export, if any: ASH_GHA_BUILD_CACHE_EXPORT is none, min or max, and unset means min. min stays the default. (automated_security_helper/interactions/run_ash_container.py, _gha_layer_cache_args)
ASH_IMAGE_NAME automated-security-helper:${TARGET_STAGE} ash (top level)
automated_security_helper/interactions/run_ash_container.py (run_ash_container)
utils/ash_helpers.ps1 (Invoke-ASH)
An empty ASH_IMAGE_NAME names no image, as in ./ash and Invoke-ASH. (automated_security_helper/interactions/run_ash_container.py, run_ash_container)
ASH_IN_CONTAINER NO YES (core) automated_security_helper/cli/scan.py (run_ash_scan_cli_command)
automated_security_helper/interactions/run_ash_scan.py (_live_progress_enabled)
automated_security_helper/utils/log.py (get_logger)
automated_security_helper/utils/scan_source.py (_in_container)
--only-scanners and --add-scanners folded into the one list the container forwards as --scanners entries: the inner scan runs in local mode, where the three inclusion flags mean the same thing (_folded_scanner_allowlist), and the inner CLI skips the --scanners deprecation line under ASH_IN_CONTAINER. (automated_security_helper/interactions/run_ash_scan.py, _run_container_mode)
ASH_IN_NIX NO automated_security_helper/interactions/run_ash_nix.py (nix_executable_for_this_run)
automated_security_helper/interactions/run_ash_scan.py (_log_files_the_nix_host_opened)
Recursion guard, following the existing ASH_IN_CONTAINER precedent. The inner invocation is rewritten to --mode local, so this should never be observed as already set; it is checked anyway because the alternative to a loud failure is a fork bomb. (automated_security_helper/interactions/run_ash_nix.py)
ASH_LOG_LEVEL automated_security_helper/utils/log.py (_last_resort_level) The level the last resort takes homeless records at: ASH_LOG_LEVEL when the environment names a level, WARNING otherwise. (automated_security_helper/utils/log.py, _last_resort_level)
ASH_LOG_TO_STDERR NO automated_security_helper/utils/log.py (get_logger) The stdio MCP transport uses stdout as its JSON-RPC channel, and the MCP server runs scans in-process (mcp_tools hands run_ash_scan to loop.run_in_executor, i.e. a thread in the same process). (automated_security_helper/utils/log.py, get_logger)
ASH_MCP_ALLOWED_CONFIG_ROOTS automated_security_helper/cli/mcp/sandbox.py (operator_config_roots) Directories the server may read a config input from -- an .ash.yaml, a .code-workspace definition, a --workspace-config policy file. (automated_security_helper/cli/mcp/sandbox.py)
ASH_MCP_ALLOWED_ROOTS automated_security_helper/cli/mcp/sandbox.py (operator_scan_roots)
automated_security_helper/cli/mcp/scan_target.py (_allowed_roots)
Directories the server may scan and write an output tree into. Unchanged spelling and meaning; see the module docstring on migration. (automated_security_helper/cli/mcp/sandbox.py)
ASH_MCP_GIT_ALLOWED_HOSTS "" automated_security_helper/cli/mcp/source_delivery.py (_git_allowed_entries) Where set_source_git may clone from, set by the operator. Comma- or whitespace-separated [scheme://]host[:port] entries. A bare host stands for its scheme's default port (https 443, ssh 22) on either scheme; host:port names the port, and https:// or ssh:// the scheme. (automated_security_helper/cli/mcp/source_delivery.py)
ASH_MCP_TRANSPORT automated_security_helper/cli/mcp/sandbox.py (get_server_transport, unknown_transport_override) Which transport this process serves. Held in the environment rather than in a module global, for two reasons that a global got wrong. A module global leaks. (automated_security_helper/cli/mcp/sandbox.py)
ASH_MCP_WORKSPACE_ROOT automated_security_helper/cli/mcp/source_delivery.py (resolve_workspace_root) 1. $ASH_MCP_WORKSPACE_ROOT 2. $XDG_CACHE_HOME/ash-mcp/ 3. ~/.cache/ash-mcp/ (automated_security_helper/cli/mcp/source_delivery.py, resolve_workspace_root)
ASH_MODE local automated_security_helper/cli/scan.py (run_ash_scan_cli_command) Sets ash scan --mode. Execution mode preset. 'local' (default) runs the scan in this process with the scanner tools installed on this machine. 'precommit' is a local scan that runs only bandit, detect-secrets, checkov, cdk-nag, npm-audit, plus any --add-scanners (or the deprecated --scanners); the config file's precommit.only_scanners and the --only-scanners flag replace that set instead. It prints simplified output and no progress display; in workspace mode it changes only the output. 'container' builds the ASH container image and runs the scan inside it. 'nix' runs the scan inside nix develop, whose shell supplies pinned scanner versions, and always offline.
ASH_NIX_FLAKE_REF automated_security_helper/interactions/run_ash_nix.py (resolve_flake_ref) Overrides which flake supplies the toolchain. Documented because the default cannot be right for every installation, and a wrong flake reference otherwise produces a Nix error with no hint that it is configurable. (automated_security_helper/interactions/run_ash_nix.py)
ASH_OCI_RUNNER utils/ash_helpers.ps1 (Invoke-ASH) Purpose not documented in code.
ASH_OFFLINE NO ${OFFLINE} (core) automated_security_helper/cli/config.py (wizard)
automated_security_helper/core/constants.py (is_offline_mode)
automated_security_helper/utils/process_env.py (hold_environ, release_environ)
Check if ASH is running in offline mode via ASH_OFFLINE env var. (automated_security_helper/core/constants.py, is_offline_mode)
ASH_OFFLINE_AT_BUILD_TIME NO ${OFFLINE} (core) automated_security_helper/utils/content_databases.py (built_offline) Set by the Dockerfile from its OFFLINE build argument (ENV ASH_OFFLINE_AT_BUILD_TIME="${OFFLINE}"), so it is YES in an image built with OFFLINE=YES; nothing else in ASH sets it, and ASH reads it wherever it is set. (automated_security_helper/utils/content_databases.py)
ASH_OUTPUT_DIR not set
required
automated_security_helper/cli/merge.py (merge_command)
automated_security_helper/cli/report.py (report_command)
automated_security_helper/cli/scan.py (run_ash_scan_cli_command)
Sets ash merge --output-dir. Directory to write the merged results and reports to.
Sets ash report --output-dir. The directory to output results to
Sets ash scan --output-dir. The directory to output results to
ASH_OUTPUT_FORMAT text utils/grype-docker-execute.sh (top level)
utils/js-docker-execute.sh (top level)
utils/yaml-docker-execute.sh (top level)
Purpose not documented in code.
ASH_PINS_DIR /ash-pins (core) automated_security_helper/assets/install-pinned-tool.py (default_package_root) ASH_PINS_DIR first, which is what the Dockerfile sets, then the checkout layout inferred from this file's own location -- assets/ and utils/ are siblings -- so the script is runnable and testable straight from a clone with no environment set up. (automated_security_helper/assets/install-pinned-tool.py, default_package_root)
ASH_PLUGIN_MODULES not set automated_security_helper/cli/plugin.py (list_plugins)
automated_security_helper/cli/scan.py (run_ash_scan_cli_command)
automated_security_helper/config/plugin_module_trust.py (environment_plugin_modules)
Sets ash plugin list --ash-plugin-modules, ash scan --ash-plugin-modules. List of Python modules to import containing ASH plugins and/or event subscribers. These are loaded in addition to the default modules.
ASH_PROJECT_NAME ash-scan automated_security_helper/config/ash_config.py (AshConfig) Sets the default of project_name.
ASH_ROOT_DIR "" utils/ash_helpers.sh (top level) A refusal returns 3, the code ASH uses for input it refuses, as ./ash and Invoke-ASH do. It returns from the sourced file and does not end the shell that sourced it. (utils/ash_helpers.sh)
ASH_S3_BUCKET_NAME null (the default of reporters.s3.options.bucket_name) automated_security_helper/config/ash_config.py (reporter_default_values)
automated_security_helper/plugin_modules/ash_aws_plugins/s3_reporter.py (S3ReporterConfigOptions)
Sets the default of reporters.s3.options.bucket_name.
ASH_SCANNERS not set automated_security_helper/cli/scan.py (run_ash_scan_cli_command) Sets ash scan --scanners. Deprecated: use --only-scanners to state the whole selection, or --add-scanners to add to the mode's default set. Behavior is unchanged: specific scanner names to run (additive to the precommit set in --mode precommit; the whole selection elsewhere). Cannot be combined with --only-scanners.
ASH_SCAN_SOURCE automated_security_helper/utils/scan_source.py (recorded_scan_source, why_no_scan_source) Set by the container launcher (run_ash_container) to the label it worked out on the host, "" when it has none. Read only in a scan the launcher started. (automated_security_helper/utils/scan_source.py)
ASH_SHARD_COUNT not set automated_security_helper/cli/scan.py (run_ash_scan_cli_command) Sets ash scan --shard-count. Total number of shards this scan is split across. Requires --shard-index. Balance is by scanner count rather than scanner cost, so counts above about four buy little: wall clock is bounded by the slowest single scanner.
ASH_SHARD_INDEX not set automated_security_helper/cli/scan.py (run_ash_scan_cli_command) Sets ash scan --shard-index. Zero-based index of this shard when one scan is split across several executors. Requires --shard-count. A 3-way split uses indices 0, 1 and 2. Each shard runs a disjoint subset of the scanners and records which ones in its results; recombine them with 'ash merge'.
ASH_SOURCE_DIR not set automated_security_helper/cli/config.py (get, lint, update, validate, validate_plugin_dependencies, wizard)
automated_security_helper/cli/scan.py (run_ash_scan_cli_command)
Sets ash config get --source-dir. The directory a scan would scan, as ash scan --source-dir: the config is discovered there unless --config names one, and a config inside it may only extend files inside it. Defaults to the current directory.
Sets ash config lint --source-dir. The directory a scan would scan, as ash scan --source-dir: the config is discovered there unless --config names one, and a config inside it may only extend files inside it. Defaults to the current directory.
Sets ash config update --source-dir. The directory a scan would scan, as ash scan --source-dir: the config is discovered there unless --config names one, and a config inside it may only extend files inside it. Defaults to the current directory.
Sets ash config validate --source-dir. The directory a scan would scan, as ash scan --source-dir: the config is discovered there unless --config names one, and a config inside it may only extend files inside it. Defaults to the current directory.
Sets ash config validate-plugin-dependencies --source-dir. The directory a scan would scan, as ash scan --source-dir: the config is discovered there unless --config names one, and a config inside it may only extend files inside it. Defaults to the current directory.
Sets ash config wizard --source-dir. The directory a scan would scan, as ash scan --source-dir: the config is discovered there unless --config names one, and a config inside it may only extend files inside it. Defaults to the current directory.
Sets ash scan --source-dir. The source directory to scan
ASH_STAGED off automated_security_helper/cli/scan.py (run_ash_scan_cli_command) Sets ash scan --staged. With --mode precommit only: scan the staged files (git diff --cached, without deletions; a rename's new path) instead of the whole tree, so a commit pays for what it stages. What the tools read is the working-tree copy of each staged file; under the pre-commit framework the two are identical, because it stashes unstaged changes around the hooks. Suppressions and ignore paths apply exactly as in a whole-tree scan; findings in files that are not staged are out of scope. With nothing staged the scan exits 0 without starting any scanner. Unlike --changed-files-only, which only filters the reports after scanning everything, --staged saves the scan time. Any other --mode refuses it (exit 5). Planned to become the precommit default in ASH v4.
ASH_STATE_DIR "" automated_security_helper/interactions/container_leftovers.py (state_dir) Names the state directory outright; otherwise ~/.ash/state/containers. (automated_security_helper/interactions/container_leftovers.py)
ASH_THIRD_PARTY_DIR automated_security_helper/assets/install-pinned-tool.py (main, third_party_main) Set by the Dockerfile's core stage. Unset, install-pinned-tool <tool> installs the executable only, which is what the uv-reqs stage and a developer want. (automated_security_helper/assets/install-pinned-tool.py)
ASH_TOOL_DOWNLOAD_CACHE "" automated_security_helper/utils/download_utils.py (_tool_download_cache) Directory of release assets kept between runs, set by CI (ASH_TOOL_DOWNLOAD_CACHE). It holds the downloaded release ASSETS, never extracted binaries and never install receipts. (automated_security_helper/utils/download_utils.py)
ASH_TOOL_VERDICT_STORE_DIR "" automated_security_helper/utils/pre_installed_tool.py (_verdict_store_dir) Overrides where the records live; "0", "off" or "none" turns persistence off. Unset or blank, the default under the user's own state directory (the container_leftovers pattern) is used. (automated_security_helper/utils/pre_installed_tool.py)
ASH_VERBOSE off automated_security_helper/cli/scan.py (run_ash_scan_cli_command)
automated_security_helper/core/execution_engine.py (ScanExecutionEngine.__init__)
automated_security_helper/interactions/run_ash_scan.py (_env_flag)
Sets ash scan --verbose. Enable verbose logging. Any log flag on the command line overrides ASH_VERBOSE.
ASH_WORD_AT ash (detect_subcommand) Purpose not documented in code.
ASH_WORKSPACE not set automated_security_helper/cli/scan.py (run_ash_scan_cli_command) Sets ash scan --workspace. Path to a '.code-workspace' file whose folders are scanned as separate, independently-scoped projects. Pass 'auto' to use the single '*.code-workspace' file in the current directory. Mutually exclusive with --source-dir.
ASH_WORKSPACE_CONFIG not set automated_security_helper/cli/scan.py (run_ash_scan_cli_command) Sets ash scan --workspace-config. Path to the workspace policy file (severity ceiling, workspace-wide suppressions and ignore paths, additional scanners). Without this, ASH looks for 'ash-workspace.{yaml,yml,json}' in the workspace root or its '.ash' directory; finding none is not an error. Must not be any project's own ASH config: workspace policy governs every project, so reading one project's config as policy would apply its settings to its siblings.

Variables from other tools and the platform

Variable Default Container image Read at Purpose
ACTIONS_CACHE_URL automated_security_helper/interactions/run_ash_container.py (_gha_layer_cache_args) The exporter authenticates with ACTIONS_RUNTIME_TOKEN and talks to ACTIONS_CACHE_URL (protocol v1) or ACTIONS_RESULTS_URL (v2). (automated_security_helper/interactions/run_ash_container.py, _gha_layer_cache_args)
ACTIONS_RESULTS_URL automated_security_helper/interactions/run_ash_container.py (_gha_layer_cache_args) The exporter authenticates with ACTIONS_RUNTIME_TOKEN and talks to ACTIONS_CACHE_URL (protocol v1) or ACTIONS_RESULTS_URL (v2). (automated_security_helper/interactions/run_ash_container.py, _gha_layer_cache_args)
ACTIONS_RUNTIME_TOKEN automated_security_helper/interactions/run_ash_container.py (_gha_layer_cache_args) The exporter authenticates with ACTIONS_RUNTIME_TOKEN and talks to ACTIONS_CACHE_URL (protocol v1) or ACTIONS_RESULTS_URL (v2). (automated_security_helper/interactions/run_ash_container.py, _gha_layer_cache_args)
APPVEYOR automated_security_helper/utils/log.py (_on_a_ci_runner) Variables a CI runner sets, any value counting: GitHub Actions, Azure Pipelines, TeamCity, Jenkins, CodeBuild, GitLab CI, Buildkite, CircleCI, Travis CI, AppVeyor, Bitbucket Pipelines and Bamboo, which can set one of these alone. (automated_security_helper/utils/log.py)
AWS_DEFAULT_REGION us-east-1 automated_security_helper/plugin_modules/ash_aws_plugins/bedrock_summary_reporter.py (BedrockSummaryReporterConfigOptions)
automated_security_helper/plugin_modules/ash_aws_plugins/cloudwatch_logs_reporter.py (CloudWatchLogsReporterConfigOptions)
automated_security_helper/plugin_modules/ash_aws_plugins/s3_reporter.py (S3ReporterConfigOptions)
automated_security_helper/plugin_modules/ash_aws_plugins/security_hub_reporter.py (SecurityHubReporterConfigOptions)
Sets the default of reporters.bedrock-summary-reporter.options.aws_region.
AWS_PROFILE null (the default of reporters.aws-security-hub.options.aws_profile)
null (the default of reporters.bedrock-summary-reporter.options.aws_profile)
null (the default of reporters.s3.options.aws_profile)
automated_security_helper/plugin_modules/ash_aws_plugins/bedrock_summary_reporter.py (BedrockSummaryReporterConfigOptions)
automated_security_helper/plugin_modules/ash_aws_plugins/s3_reporter.py (S3ReporterConfigOptions)
automated_security_helper/plugin_modules/ash_aws_plugins/security_hub_reporter.py (SecurityHubReporterConfigOptions)
Sets the default of reporters.aws-security-hub.options.aws_profile, reporters.bedrock-summary-reporter.options.aws_profile, reporters.s3.options.aws_profile.
AWS_REGION os.environ.get("AWS_DEFAULT_REGION", "us-east-1") automated_security_helper/plugin_modules/ash_aws_plugins/bedrock_summary_reporter.py (BedrockSummaryReporterConfigOptions)
automated_security_helper/plugin_modules/ash_aws_plugins/cloudwatch_logs_reporter.py (CloudWatchLogsReporterConfigOptions)
automated_security_helper/plugin_modules/ash_aws_plugins/s3_reporter.py (S3ReporterConfigOptions)
automated_security_helper/plugin_modules/ash_aws_plugins/security_hub_reporter.py (SecurityHubReporterConfigOptions)
Sets the default of reporters.aws-security-hub.options.aws_region, reporters.bedrock-summary-reporter.options.aws_region, reporters.cloudwatch-logs.options.aws_region, reporters.s3.options.aws_region.
AZURE_PIPELINES automated_security_helper/utils/log.py (_on_a_ci_runner) Variables a CI runner sets, any value counting: GitHub Actions, Azure Pipelines, TeamCity, Jenkins, CodeBuild, GitLab CI, Buildkite, CircleCI, Travis CI, AppVeyor, Bitbucket Pipelines and Bamboo, which can set one of these alone. (automated_security_helper/utils/log.py)
BETTERLEAKS_CONFIG automated_security_helper/plugin_modules/ash_betterleaks_plugins/betterleaks_scanner.py (_config_env_names_set) Environment variables Betterleaks reads a config from, in its order of precedence: BETTERLEAKS_CONFIG and GITLEAKS_CONFIG name a file, BETTERLEAKS_CONFIG_TOML and GITLEAKS_CONFIG_TOML hold the config's text, and each GITLEAKS_ name is read only when its BETTERLEAKS_ one is unset. (automated_security_helper/plugin_modules/ash_betterleaks_plugins/betterleaks_scanner.py)
BETTERLEAKS_CONFIG_TOML automated_security_helper/plugin_modules/ash_betterleaks_plugins/betterleaks_scanner.py (_config_env_names_set) Environment variables Betterleaks reads a config from, in its order of precedence: BETTERLEAKS_CONFIG and GITLEAKS_CONFIG name a file, BETTERLEAKS_CONFIG_TOML and GITLEAKS_CONFIG_TOML hold the config's text, and each GITLEAKS_ name is read only when its BETTERLEAKS_ one is unset. (automated_security_helper/plugin_modules/ash_betterleaks_plugins/betterleaks_scanner.py)
BITBUCKET_BUILD_NUMBER automated_security_helper/utils/log.py (_on_a_ci_runner) Variables a CI runner sets, any value counting: GitHub Actions, Azure Pipelines, TeamCity, Jenkins, CodeBuild, GitLab CI, Buildkite, CircleCI, Travis CI, AppVeyor, Bitbucket Pipelines and Bamboo, which can set one of these alone. (automated_security_helper/utils/log.py)
BUILDKITE automated_security_helper/utils/log.py (_on_a_ci_runner) Variables a CI runner sets, any value counting: GitHub Actions, Azure Pipelines, TeamCity, Jenkins, CodeBuild, GitLab CI, Buildkite, CircleCI, Travis CI, AppVeyor, Bitbucket Pipelines and Bamboo, which can set one of these alone. (automated_security_helper/utils/log.py)
CFG_I ash (top level) Purpose not documented in code.
CI "" automated_security_helper/cli/scan.py (run_ash_scan_cli_command)
automated_security_helper/interactions/run_ash_scan.py (_live_progress_enabled)
automated_security_helper/utils/log.py (_on_a_ci_runner)
It is utils/console.py's print, not rich's: its console checks each line it writes off a terminal, so none reads as a CI command. (automated_security_helper/cli/scan.py)
CIRCLECI automated_security_helper/utils/log.py (_on_a_ci_runner) Variables a CI runner sets, any value counting: GitHub Actions, Azure Pipelines, TeamCity, Jenkins, CodeBuild, GitLab CI, Buildkite, CircleCI, Travis CI, AppVeyor, Bitbucket Pipelines and Bamboo, which can set one of these alone. (automated_security_helper/utils/log.py)
CODEBUILD_BUILD_ID automated_security_helper/utils/log.py (_on_a_ci_runner) Variables a CI runner sets, any value counting: GitHub Actions, Azure Pipelines, TeamCity, Jenkins, CodeBuild, GitLab CI, Buildkite, CircleCI, Travis CI, AppVeyor, Bitbucket Pipelines and Bamboo, which can set one of these alone. (automated_security_helper/utils/log.py)
COMP_CWORD automated_security_helper/express/client.py (completion_in_progress) click's completion protocol re-invokes the program with _<PROG>_COMPLETE in the environment (_ASH_COMPLETE and the other console-script names), and bash's own machinery exports COMP_WORDS/COMP_CWORD. (automated_security_helper/express/client.py, completion_in_progress)
COMP_WORDS automated_security_helper/express/client.py (completion_in_progress) click's completion protocol re-invokes the program with _<PROG>_COMPLETE in the environment (_ASH_COMPLETE and the other console-script names), and bash's own machinery exports COMP_WORDS/COMP_CWORD. (automated_security_helper/express/client.py, completion_in_progress)
CONTAINERD_ADDRESS automated_security_helper/interactions/container_leftovers.py (_daemon_environment) Purpose not documented in code.
CONTAINERD_NAMESPACE automated_security_helper/interactions/container_leftovers.py (_daemon_environment) Purpose not documented in code.
CONTAINER_CONNECTION automated_security_helper/interactions/container_leftovers.py (_daemon_environment) Purpose not documented in code.
CONTAINER_HOST automated_security_helper/interactions/container_leftovers.py (_daemon_environment) Purpose not documented in code.
DEVELOPER_DIR automated_security_helper/plugin_modules/ash_builtin/scanners/cfn_nag_scanner.py (_macos_developer_tools_present) Purpose not documented in code.
DOCKER_CONFIG automated_security_helper/interactions/container_leftovers.py (_daemon_environment, _docker_current_context) Without DOCKER_HOST or DOCKER_CONTEXT the client reads currentContext from config.json under DOCKER_CONFIG (~/.docker by default), so a run under another context talks to another daemon with no variable changed. (automated_security_helper/interactions/container_leftovers.py, _docker_current_context)
DOCKER_CONTEXT automated_security_helper/interactions/container_leftovers.py (_daemon_environment) Without DOCKER_HOST or DOCKER_CONTEXT the client reads currentContext from config.json under DOCKER_CONFIG (~/.docker by default), so a run under another context talks to another daemon with no variable changed. (automated_security_helper/interactions/container_leftovers.py, _docker_current_context)
DOCKER_EXTRA_ARGS "" ash (top level) Purpose not documented in code.
DOCKER_HOST automated_security_helper/interactions/container_leftovers.py (_daemon_environment) Without DOCKER_HOST or DOCKER_CONTEXT the client reads currentContext from config.json under DOCKER_CONFIG (~/.docker by default), so a run under another context talks to another daemon with no variable changed. (automated_security_helper/interactions/container_leftovers.py, _docker_current_context)
EXTRA_BUILD_ARGS ash (top level) Purpose not documented in code.
FORCE_COLOR automated_security_helper/utils/console.py (typer_console) For what ASH prints in typer's place, a usage error and an escaping exception's traceback, so they look as typer prints them: typer's theme and option highlighter, its color system, a terminal forced under GITHUB_ACTIONS, FORCE_COLOR or PY_COLORS (whose logs show color) and turned off by _TYPER_FORCE_DISABLE_TERMINAL, ... (automated_security_helper/utils/console.py, typer_console)
GITHUB_ACTIONS automated_security_helper/utils/command_safe_stream.py (_under_a_command_reading_runner)
automated_security_helper/utils/console.py (typer_console)
automated_security_helper/utils/log.py (_on_a_ci_runner)
The variable each runner that reads workflow commands from a job's output sets in every job: GitHub Actions, Azure Pipelines, TeamCity. Container mode and ./ash pass each one that is set into the container, so the scan there checks a terminal's lines too. (automated_security_helper/utils/command_safe_stream.py)
GITLAB_CI automated_security_helper/utils/log.py (_on_a_ci_runner) Variables a CI runner sets, any value counting: GitHub Actions, Azure Pipelines, TeamCity, Jenkins, CodeBuild, GitLab CI, Buildkite, CircleCI, Travis CI, AppVeyor, Bitbucket Pipelines and Bamboo, which can set one of these alone. (automated_security_helper/utils/log.py)
GITLEAKS_CONFIG automated_security_helper/plugin_modules/ash_betterleaks_plugins/betterleaks_scanner.py (_config_env_names_set)
automated_security_helper/plugin_modules/ash_builtin/scanners/gitleaks_scanner.py (GitleaksScanner._config_env_value, GitleaksScanner._resolve_config_file)
Environment variables Betterleaks reads a config from, in its order of precedence: BETTERLEAKS_CONFIG and GITLEAKS_CONFIG name a file, BETTERLEAKS_CONFIG_TOML and GITLEAKS_CONFIG_TOML hold the config's text, and each GITLEAKS_ name is read only when its BETTERLEAKS_ one is unset. (automated_security_helper/plugin_modules/ash_betterleaks_plugins/betterleaks_scanner.py)
GITLEAKS_CONFIG_TOML automated_security_helper/plugin_modules/ash_betterleaks_plugins/betterleaks_scanner.py (_config_env_names_set)
automated_security_helper/plugin_modules/ash_builtin/scanners/gitleaks_scanner.py (GitleaksScanner._resolve_config_file)
Environment variables Betterleaks reads a config from, in its order of precedence: BETTERLEAKS_CONFIG and GITLEAKS_CONFIG name a file, BETTERLEAKS_CONFIG_TOML and GITLEAKS_CONFIG_TOML hold the config's text, and each GITLEAKS_ name is read only when its BETTERLEAKS_ one is unset. (automated_security_helper/plugin_modules/ash_betterleaks_plugins/betterleaks_scanner.py)
GIT_CEILING_DIRECTORIES "" automated_security_helper/utils/scan_output_dirs.py (_repository_root_of)
automated_security_helper/utils/scan_source.py (_ceiling_entries)
GIT_CEILING_DIRECTORIES is honored as git honors it: *directory* itself is always looked at, listed or not, and the search stops before it would move up into a listed directory. (automated_security_helper/utils/scan_output_dirs.py, _repository_root_of)
GIT_COMMON_DIR automated_security_helper/utils/get_scan_set.py (_layout_environ) Variables that point git at a repository whatever its working directory is. (automated_security_helper/utils/get_scan_set.py)
GIT_DIR automated_security_helper/utils/get_scan_set.py (_layout_environ)
automated_security_helper/utils/scan_source.py (_a_git_entry_may_exist)
Variables that point git at a repository whatever its working directory is. (automated_security_helper/utils/get_scan_set.py)
GIT_INDEX_FILE automated_security_helper/utils/get_scan_set.py (_layout_environ) A kept copy never carries GIT_INDEX_FILE: the diff compares two commits and reads no index, so the variable is left out as defense in depth, and no git started here reads an index exported for another purpose (a pre-commit hook's temporary index names the files being committed, not the tree). (automated_security_helper/utils/get_scan_set.py, _layout_environ)
GIT_WORK_TREE automated_security_helper/utils/get_scan_set.py (_layout_environ) Variables that point git at a repository whatever its working directory is. (automated_security_helper/utils/get_scan_set.py)
GRYPE_DB_CACHE_DIR /deps/.grype (core) automated_security_helper/utils/offline_mode_validator.py (_cache_directory)
utils/grype-docker-execute.sh (top level)
Purpose not documented in code.
HOME "" ${ASHUSER_HOME} (non-root) automated_security_helper/core/constants.py (usable_home)
automated_security_helper/express/runtime.py (runtime_dir)
automated_security_helper/utils/sandbox/policy.py (_policy_home)
automated_security_helper/utils/sandbox/scope.py (scanner_sandbox_scope)
On POSIX it is HOME when HOME is set, not empty, and absolute. (automated_security_helper/core/constants.py, usable_home)
JENKINS_URL automated_security_helper/utils/log.py (_on_a_ci_runner) Variables a CI runner sets, any value counting: GitHub Actions, Azure Pipelines, TeamCity, Jenkins, CodeBuild, GitLab CI, Buildkite, CircleCI, Travis CI, AppVeyor, Bitbucket Pipelines and Bamboo, which can set one of these alone. (automated_security_helper/utils/log.py)
JSII_NODE automated_security_helper/plugin_modules/ash_builtin/scanners/cdk_nag_scanner.py (_jsii_node_value)
automated_security_helper/utils/cdk_nag_wrapper.py (run_cdk_nag_against_cfn_template)
The value of JSII_NODE, or "" when it is unset or empty. (automated_security_helper/plugin_modules/ash_builtin/scanners/cdk_nag_scanner.py, _jsii_node_value)
LC_ALL utils/ash_helpers.ps1 (Invoke-ASH.Get-AshFirstLine) Purpose not documented in code.
LS_UID ash (git_entry_trusted, ls_mode_and_owner) Purpose not documented in code.
MKDIR_REASON mkdir did not make it ash (create_output_dir) Purpose not documented in code.
NO_COLOR automated_security_helper/cli/report.py (report_command)
automated_security_helper/core/metrics_table.py (display_metrics_table)
pretty is color being on (no --no-color, no NO_COLOR); it takes effect only when *stream* is an interactive terminal. (automated_security_helper/cli/report.py, _write_report)
NPM_CONFIG_CACHE automated_security_helper/utils/offline_mode_validator.py (validate_npm_audit_offline_mode) Check for npm cache directory. npm reads its configuration variables in the lowercase spelling (npm_config_cache) as well as the uppercase one; on POSIX the two are different variables, and only the uppercase one was read here. (automated_security_helper/utils/offline_mode_validator.py, validate_npm_audit_offline_mode)
OCI_RUNNER $(command -v finch || command -v docker || command -v nerdctl || command -v podman)
""
ash (top level)
automated_security_helper/cli/image.py (build_ash_image_cli_command)
automated_security_helper/cli/scan.py (run_ash_scan_cli_command)
utils/ash_helpers.ps1 (Invoke-ASH)
Sets ash build-image --oci-runner. Use the specified OCI runner instead of docker to run the containerized tools. To prefix every OCI command with a wrapper (e.g. sudo), set the OCI_RUNNER_WRAPPER environment variable instead of using this option (e.g. OCI_RUNNER_WRAPPER=sudo ash ...).
Sets ash scan --oci-runner. Use the specified OCI runner instead of docker to run the containerized tools
OCI_RUNNER_WRAPPER "" ash (top level)
automated_security_helper/interactions/run_ash_container.py (_get_oci_wrapper_prefix)
utils/ash_helpers.ps1 (Invoke-ASH)
OCI_RUNNER_WRAPPER prefixes all OCI commands (like RUSTC_WRAPPER for cargo) Example: OCI_RUNNER_WRAPPER=sudo makes all finch/docker calls use sudo (ash)
OPENGREP_RULES_CACHE_DIR "" /deps/.opengrep (core) automated_security_helper/plugin_modules/ash_builtin/scanners/_grep_scanner_base.py (GrepScannerBase._configure_offline_mode, GrepScannerBase.content_database_probe_context) Purpose not documented in code.
PATH ""
os.defpath
/root/.local/bin:$PATH (uv-reqs)
/root/.local/bin:$PATH (core)
/usr/local/bin:$PATH (core)
${ASH_BIN_PATH}:$PATH (core)
${ASHUSER_HOME}/.local/bin:$PATH (non-root)
automated_security_helper/assets/install-pinned-tool.py (_absolute_entries)
automated_security_helper/utils/sandbox/backends.py (_probe_env)
automated_security_helper/utils/sandbox/policy.py (_path_directories)
automated_security_helper/utils/subprocess_utils.py (_absolute_path_entries, _found_on_the_childs_path, _lookup, started_from_working_directory)
automated_security_helper/utils/uv_tool_runner.py (_lookup_key)
The absolute entries of search_path, or of PATH. (automated_security_helper/assets/install-pinned-tool.py, _absolute_entries)
PWD "" ash (carry_config_file)
automated_security_helper/config/sandbox_grants.py (_logical_paths)
automated_security_helper/interactions/run_ash_container.py (_name_from_the_logical_directory)
utils/yaml-docker-execute.sh (top level)
ASH builds an absolute scan root from the physical working directory, so a root whose text starts with it is rejoined to $PWD from the rest of its text, .. and symlinks included. (automated_security_helper/config/sandbox_grants.py, _logical_paths)
PYTHONHOME "" automated_security_helper/express/runtime.py (interpreter_shape) PYTHONPATH (absolute entries, :func:absolute_python_path), PYTHONHOME, PYTHONUSERBASE, PYTHONNOUSERSITE and VIRTUAL_ENV (:data:INTERPRETER_ENV). (automated_security_helper/express/runtime.py, interpreter_shape)
PYTHONIOENCODING "" automated_security_helper/cli/entrypoint.py (_stream_codec)
automated_security_helper/express/daemon.py (ExpressDaemon._reopen_std_streams)
automated_security_helper/utils/process_env.py (setdefault_environ)
As the interpreter chooses them for the streams it makes at start: PYTHONIOENCODING (encoding[:errors], unless python -E ignores the environment), UTF-8 under UTF-8 mode (-X utf8, PYTHONUTF8=1), else the locale's codec, None here. (automated_security_helper/cli/entrypoint.py, _stream_codec)
PYTHONNOUSERSITE "" automated_security_helper/express/runtime.py (interpreter_shape) PYTHONPATH (absolute entries, :func:absolute_python_path), PYTHONHOME, PYTHONUSERBASE, PYTHONNOUSERSITE and VIRTUAL_ENV (:data:INTERPRETER_ENV). (automated_security_helper/express/runtime.py, interpreter_shape)
PYTHONPATH "" automated_security_helper/express/runtime.py (interpreter_shape)
automated_security_helper/interactions/run_ash_nix.py (run_ash_nix)
PYTHONPATH (absolute entries, :func:absolute_python_path), PYTHONHOME, PYTHONUSERBASE, PYTHONNOUSERSITE and VIRTUAL_ENV (:data:INTERPRETER_ENV). (automated_security_helper/express/runtime.py, interpreter_shape)
PYTHONUSERBASE "" automated_security_helper/express/runtime.py (interpreter_shape) PYTHONPATH (absolute entries, :func:absolute_python_path), PYTHONHOME, PYTHONUSERBASE, PYTHONNOUSERSITE and VIRTUAL_ENV (:data:INTERPRETER_ENV). (automated_security_helper/express/runtime.py, interpreter_shape)
PY_COLORS automated_security_helper/utils/console.py (typer_console) For what ASH prints in typer's place, a usage error and an escaping exception's traceback, so they look as typer prints them: typer's theme and option highlighter, its color system, a terminal forced under GITHUB_ACTIONS, FORCE_COLOR or PY_COLORS (whose logs show color) and turned off by _TYPER_FORCE_DISABLE_TERMINAL, ... (automated_security_helper/utils/console.py, typer_console)
ProgramData automated_security_helper/cli/mcp/scan_target.py (_denied_root_values) Windows equivalents, read from the shell's own directory variables so the policy follows a system installed on a drive other than C:. (automated_security_helper/cli/mcp/scan_target.py)
ProgramFiles automated_security_helper/cli/mcp/scan_target.py (_denied_root_values) Windows equivalents, read from the shell's own directory variables so the policy follows a system installed on a drive other than C:. (automated_security_helper/cli/mcp/scan_target.py)
ProgramFiles(x86) automated_security_helper/cli/mcp/scan_target.py (_denied_root_values) Windows equivalents, read from the shell's own directory variables so the policy follows a system installed on a drive other than C:. (automated_security_helper/cli/mcp/scan_target.py)
ProgramW6432 automated_security_helper/cli/mcp/scan_target.py (_denied_root_values) Windows equivalents, read from the shell's own directory variables so the policy follows a system installed on a drive other than C:. (automated_security_helper/cli/mcp/scan_target.py)
RESOLVED_DIR "" ash (below_the_source) Purpose not documented in code.
RI_DEVKIT automated_security_helper/plugin_modules/ash_builtin/scanners/cfn_nag_scanner.py (CfnNagScanner._missing_gem_prerequisites) Windows is checked on RI_DEVKIT rather than on a compiler being present, and the difference is not pedantic. A first attempt probed for cc/gcc/clang; (automated_security_helper/plugin_modules/ash_builtin/scanners/cfn_nag_scanner.py, CfnNagScanner._missing_gem_prerequisites)
SEMGREP_ENABLE_VERSION_CHECK automated_security_helper/utils/process_env.py (hold_environ, release_environ) The variable is set before the hold is recorded: a set that raises (a value that is not a str) leaves no hold behind that no caller would release. (automated_security_helper/utils/process_env.py, hold_environ)
SEMGREP_RULES_CACHE_DIR "" /deps/.semgrep (core) automated_security_helper/plugin_modules/ash_builtin/scanners/_grep_scanner_base.py (GrepScannerBase._configure_offline_mode, GrepScannerBase.content_database_probe_context)
utils/grype-docker-execute.sh (top level)
Env var pointing at the offline rule cache (e.g. SEMGREP_RULES_CACHE_DIR). (automated_security_helper/plugin_modules/ash_builtin/scanners/_grep_scanner_base.py, GrepScannerBase.cache_dir_env_var)
SNYK_TOKEN "" automated_security_helper/plugin_modules/ash_snyk_plugins/snyk_code_scanner.py (SnykCodeScanner.validate_plugin_dependencies) Check if SNYK_TOKEN is defined on the environment variable or if using local mode, the file ${HOME}/.config/configstore/snyk.json or ${HOME}/.config/configstore/.snyk.json exists (automated_security_helper/plugin_modules/ash_snyk_plugins/snyk_code_scanner.py, SnykCodeScanner.validate_plugin_dependencies)
SOURCE_ANCESTOR / ash (top level) Purpose not documented in code.
SSH_AUTH_SOCK "" automated_security_helper/utils/sandbox/backends.py (FirejailBackend.plan) firejail leaves everything outside $HOME visible, including the local IPC endpoints a scanner could use to act outside the sandbox: the container runtime sockets, the per-user runtime directory (session bus, gpg-agent, rootless Docker or Podman) and the SSH agent. (automated_security_helper/utils/sandbox/backends.py, FirejailBackend.plan)
SYSTEMROOT automated_security_helper/utils/sandbox/backends.py (_probe_env)
automated_security_helper/utils/subprocess_utils.py (_windows_system_directory)
A Windows process started without SYSTEMROOT cannot get random numbers (CPython: "failed to get random numbers to initialize Python") or load its DLLs, so no probe, Python or otherwise, would start. (automated_security_helper/utils/sandbox/backends.py, _probe_env)
SystemDrive automated_security_helper/utils/uv_tool_runner.py (_windows_system_drive_root) ntpath, so the parsing is Windows' wherever this runs. (automated_security_helper/utils/uv_tool_runner.py, _windows_system_drive_root)
SystemRoot automated_security_helper/cli/mcp/scan_target.py (_denied_root_values)
automated_security_helper/utils/subprocess_utils.py (_windows_system_directory)
automated_security_helper/utils/uv_tool_runner.py (_windows_system_drive_root)
Windows equivalents, read from the shell's own directory variables so the policy follows a system installed on a drive other than C:. (automated_security_helper/cli/mcp/scan_target.py)
TEAMCITY_VERSION automated_security_helper/utils/command_safe_stream.py (_under_a_command_reading_runner)
automated_security_helper/utils/log.py (_on_a_ci_runner)
The variable each runner that reads workflow commands from a job's output sets in every job: GitHub Actions, Azure Pipelines, TeamCity. Container mode and ./ash pass each one that is set into the container, so the scan there checks a terminal's lines too. (automated_security_helper/utils/command_safe_stream.py)
TEMP automated_security_helper/interactions/container_leftovers.py (_env_dir_parents) The variables tempfile.gettempdir reads, in the order it reads them. (automated_security_helper/interactions/container_leftovers.py)
TERMINAL_WIDTH "" automated_security_helper/cli/entrypoint.py (_ash_traceback)
automated_security_helper/utils/console.py (typer_console)
typer's widths, its TERMINAL_WIDTH or else the console's, where Rich's own defaults are 100 and 88; read now, as typer_console reads it. (automated_security_helper/cli/entrypoint.py, _ash_traceback)
TF_BUILD automated_security_helper/utils/command_safe_stream.py (_under_a_command_reading_runner)
automated_security_helper/utils/log.py (_on_a_ci_runner)
The variable each runner that reads workflow commands from a job's output sets in every job: GitHub Actions, Azure Pipelines, TeamCity. Container mode and ./ash pass each one that is set into the container, so the scan there checks a terminal's lines too. (automated_security_helper/utils/command_safe_stream.py)
TMP automated_security_helper/interactions/container_leftovers.py (_env_dir_parents) The variables tempfile.gettempdir reads, in the order it reads them. (automated_security_helper/interactions/container_leftovers.py)
TMPDIR automated_security_helper/interactions/container_leftovers.py (_env_dir_parents) The variables tempfile.gettempdir reads, in the order it reads them. (automated_security_helper/interactions/container_leftovers.py)
TRAVIS automated_security_helper/utils/log.py (_on_a_ci_runner) Variables a CI runner sets, any value counting: GitHub Actions, Azure Pipelines, TeamCity, Jenkins, CodeBuild, GitLab CI, Buildkite, CircleCI, Travis CI, AppVeyor, Bitbucket Pipelines and Bamboo, which can set one of these alone. (automated_security_helper/utils/log.py)
TRIVY_CACHE_DIR /deps/.trivy (core) automated_security_helper/utils/offline_mode_validator.py (_cache_directory) Purpose not documented in code.
TRIVY_CONFIG automated_security_helper/plugin_modules/ash_builtin/scanners/_trivy_scanner_base.py (TrivyScannerBase._operator_config_choice) The variable is the operator's, set where ASH runs, so a relative path in it is taken from the working directory as written, as TRIVY_IGNOREFILE's is (_trivy_input_file), not from the scanned directory. The value is quoted as set. (automated_security_helper/plugin_modules/ash_builtin/scanners/_trivy_scanner_base.py, TrivyScannerBase._operator_config_choice)
TRIVY_IGNOREFILE automated_security_helper/plugin_modules/ash_builtin/scanners/_trivy_scanner_base.py (TrivyScannerBase._environment_values, TrivyScannerBase._trivy_input_file) TRIVY_IGNOREFILE and TRIVY_SECRET_CONFIG. TRIVY_CONFIG is left out on purpose: its value is the operator's config path and is shown, escaped, in the refusal that names it (_existing_file), as its tests pin. (automated_security_helper/plugin_modules/ash_builtin/scanners/_trivy_scanner_base.py, TrivyScannerBase._environment_values)
TRIVY_SECRET_CONFIG automated_security_helper/plugin_modules/ash_builtin/scanners/_trivy_scanner_base.py (TrivyScannerBase._environment_values, TrivyScannerBase._trivy_input_file) TRIVY_IGNOREFILE and TRIVY_SECRET_CONFIG. TRIVY_CONFIG is left out on purpose: its value is the operator's config path and is shown, escaped, in the refusal that names it (_existing_file), as its tests pin. (automated_security_helper/plugin_modules/ash_builtin/scanners/_trivy_scanner_base.py, TrivyScannerBase._environment_values)
TYPER_STANDARD_TRACEBACK os.getenv("_TYPER_STANDARD_TRACEBACK") automated_security_helper/cli/entrypoint.py (_standard_traceback) Whether typer's hook would print the plain traceback for *exc*, as typer.main.except_hook decides: TYPER_STANDARD_TRACEBACK set, or no pretty-traceback tag on the exception. (automated_security_helper/cli/entrypoint.py, _standard_traceback)
UV_CACHE_DIR automated_security_helper/utils/sandbox/policy.py (build_scanner_policy, uv_cache_directory) uv finds its tools, its managed interpreters and its cache from UV_TOOL_DIR, UV_PYTHON_INSTALL_DIR and UV_CACHE_DIR, else from the XDG data and cache homes, else under $HOME. (automated_security_helper/utils/sandbox/policy.py, _uv_environment)
UV_OFFLINE automated_security_helper/utils/uv_tool_runner.py (UVToolRunner.install_tool_with_version) UV_OFFLINE set by hand in the environment while _offline_for read online (the offline mode itself returned above): uv's own flag is passed along. Named apart from the offline parameter, which the return above has already consumed. (automated_security_helper/utils/uv_tool_runner.py, UVToolRunner.install_tool_with_version)
UV_PYTHON_INSTALL_DIR automated_security_helper/utils/sandbox/policy.py (_uv_data_directories) UV_TOOL_DIR and UV_PYTHON_INSTALL_DIR where set, each screened (_screened_uv_directory), else uv/tools and uv/python under the XDG data home. (automated_security_helper/utils/sandbox/policy.py, _uv_data_directories)
UV_TOOL_DIR automated_security_helper/utils/sandbox/policy.py (_uv_data_directories)
automated_security_helper/utils/uv_tool_runner.py (_uv_tools_dir)
UV_TOOL_DIR and UV_PYTHON_INSTALL_DIR where set, each screened (_screened_uv_directory), else uv/tools and uv/python under the XDG data home. (automated_security_helper/utils/sandbox/policy.py, _uv_data_directories)
VIRTUAL_ENV "" automated_security_helper/express/runtime.py (interpreter_shape) PYTHONPATH (absolute entries, :func:absolute_python_path), PYTHONHOME, PYTHONUSERBASE, PYTHONNOUSERSITE and VIRTUAL_ENV (:data:INTERPRETER_ENV). (automated_security_helper/express/runtime.py, interpreter_shape)
WITH_RETRY_DELAY 5 automated_security_helper/assets/with-retry.sh (top level) Overridable so the retry behaviour can be exercised without waiting out the real backoff. Defaults are what every Dockerfile caller gets. Five attempts, not three. (automated_security_helper/assets/with-retry.sh)
WITH_RETRY_MAX_ATTEMPTS 5 automated_security_helper/assets/with-retry.sh (top level) Overridable so the retry behaviour can be exercised without waiting out the real backoff. Defaults are what every Dockerfile caller gets. Five attempts, not three. (automated_security_helper/assets/with-retry.sh)
WITH_RETRY_NO_RETRY_EXITS 2 3 automated_security_helper/assets/with-retry.sh (top level) Exit statuses that are never retried, and are passed through as the script's own status. A retry is for a failure the next attempt can cure: a reset connection, a host that did not resolve. (automated_security_helper/assets/with-retry.sh)
WRAPPER_WORDS ash (top level) A relative first word names a file under the working directory, usually the repository being scanned. It is refused, as the ash CLI refuses it: not run, and the runtime does not start without the wrapper the operator asked for. (ash)
WRITE_CHECK ash (create_output_dir) Purpose not documented in code.
WRITE_ERROR ash (create_output_dir) Purpose not documented in code.
WRITE_REASON a file could not be made there ash (create_output_dir) Purpose not documented in code.
XDG_CACHE_HOME "" automated_security_helper/cli/mcp/source_delivery.py (resolve_workspace_root)
automated_security_helper/utils/package_manager_child.py (_operator_cache_dir)
automated_security_helper/utils/sandbox/policy.py (_xdg_directory)
1. $ASH_MCP_WORKSPACE_ROOT 2. $XDG_CACHE_HOME/ash-mcp/ 3. ~/.cache/ash-mcp/ (automated_security_helper/cli/mcp/source_delivery.py, resolve_workspace_root)
XDG_CONFIG_HOME automated_security_helper/interactions/container_leftovers.py (_podman_default_connection) Purpose not documented in code.
XDG_DATA_HOME "" automated_security_helper/utils/sandbox/policy.py (_xdg_directory)
automated_security_helper/utils/uv_tool_runner.py (_uv_tools_dir)
Read as given, a relative XDG_DATA_HOME or XDG_CACHE_HOME named uv's directories under ASH's working directory, usually the scanned repository, which _existing then made absolute and the policy mounted, as executable where uv's tools would be. (automated_security_helper/utils/sandbox/policy.py, _xdg_directory)
XDG_RUNTIME_DIR "" automated_security_helper/express/runtime.py (runtime_dir)
automated_security_helper/utils/package_manager_child.py (_runtime_dir)
$XDG_RUNTIME_DIR/ash-express where the variable names a directory (the per-user tmpfs systemd provides, already 0700 and cleared at logout), else ~/.ash/run. (automated_security_helper/express/runtime.py, runtime_dir)
YARN_CACHE_FOLDER automated_security_helper/utils/offline_mode_validator.py (validate_npm_audit_offline_mode) Purpose not documented in code.
ZSH_VERSION "" utils/ash_helpers.sh (top level) Purpose not documented in code.
_AGENTIC_SECURITY_HARNESS_COMPLETE automated_security_helper/express/client.py (completion_in_progress) click's completion variables for ASH's own console scripts (_<PROG>_COMPLETE with the program name uppercased and - as _). (automated_security_helper/express/client.py)
_ASHV3_COMPLETE automated_security_helper/express/client.py (completion_in_progress) click's completion variables for ASH's own console scripts (_<PROG>_COMPLETE with the program name uppercased and - as _). (automated_security_helper/express/client.py)
_ASH_COMPLETE automated_security_helper/express/client.py (completion_in_progress) click's completion variables for ASH's own console scripts (_<PROG>_COMPLETE with the program name uppercased and - as _). (automated_security_helper/express/client.py)
_AUTOMATED_SECURITY_HELPER_COMPLETE automated_security_helper/express/client.py (completion_in_progress) click's completion variables for ASH's own console scripts (_<PROG>_COMPLETE with the program name uppercased and - as _). (automated_security_helper/express/client.py)
_TYPER_FORCE_DISABLE_TERMINAL automated_security_helper/utils/console.py (typer_console) For what ASH prints in typer's place, a usage error and an escaping exception's traceback, so they look as typer prints them: typer's theme and option highlighter, its color system, a terminal forced under GITHUB_ACTIONS, FORCE_COLOR or PY_COLORS (whose logs show color) and turned off by _TYPER_FORCE_DISABLE_TERMINAL, ... (automated_security_helper/utils/console.py, typer_console)
_TYPER_STANDARD_TRACEBACK automated_security_helper/cli/entrypoint.py (_standard_traceback) Purpose not documented in code.
bamboo_buildKey automated_security_helper/utils/log.py (_on_a_ci_runner) Variables a CI runner sets, any value counting: GitHub Actions, Azure Pipelines, TeamCity, Jenkins, CodeBuild, GitLab CI, Buildkite, CircleCI, Travis CI, AppVeyor, Bitbucket Pipelines and Bamboo, which can set one of these alone. (automated_security_helper/utils/log.py)
npm_config_cache automated_security_helper/utils/offline_mode_validator.py (validate_npm_audit_offline_mode) Check for npm cache directory. npm reads its configuration variables in the lowercase spelling (npm_config_cache) as well as the uppercase one; on POSIX the two are different variables, and only the uppercase one was read here. (automated_security_helper/utils/offline_mode_validator.py, validate_npm_audit_offline_mode)

Variables a configuration file can read

A value in a configuration file that begins with ${NAME} or ${NAME:default} has the reference replaced by that environment variable. Only names that start with ASH_ and these names are substituted: AWS_DEFAULT_REGION, AWS_PROFILE, AWS_REGION. Any other reference is left as written, with a warning. The prefix and the list are defined in automated_security_helper/core/constants.py.

Lookups that could not be resolved

These reads take the variable name from a value the generator cannot resolve without running ASH: a name read from a configuration file, built at run time, or passed in from somewhere it cannot follow. A variable read only through one of these sites is not in the tables above.

automated_security_helper/cli/scan.py (run_ash_scan_cli_command) [environ.get] if os.environ.get(CHILD_ENV):
automated_security_helper/config/ash_config.py (env_reference_value) [environ.get] resolved = os.environ.get(reference.var_name, None)
automated_security_helper/config/config_sources.py (_empty_key_reference_names.walk) [environ.get] if resolved is None and os.environ.get(name) is not None:
automated_security_helper/config/config_validator.py (_reference_variable_is_set) [environ.get] value = os.environ.get(reference.group(1))
automated_security_helper/config/environment_record.py (_value_read) [environ.get] value = os.environ.get(name)
automated_security_helper/core/constants.py (warn_if_home_unusable) [environ.get] value = os.environ.get(variable)
automated_security_helper/core/constants.py (xdg_directory) [environ.get] value = os.environ.get(variable, "")
automated_security_helper/express/runtime.py (apply_request_env) [environ.pop] environ.pop(name, None)
automated_security_helper/interactions/run_ash_container.py (_carried_values_by_band) [environ.get] value = environ.get(name, "")
automated_security_helper/interactions/run_ash_container.py (_carried_values_by_band) [environ.get] value = environ.get(name.upper(), "")
automated_security_helper/interactions/run_ash_container.py (_runner_marker_args) [environ.get] value = environ.get(name)
automated_security_helper/interactions/run_ash_container.py (_write_env_file) [environ.get] if any(char in environ.get(name, "") for char in "\n\r\0"):
automated_security_helper/interactions/run_ash_container.py (_write_env_file) [presence check] if name in environ:
automated_security_helper/interactions/run_ash_container.py (_write_env_file) [subscript] handle.write(f"{name}={environ[name]}\n")
automated_security_helper/plugin_modules/ash_builtin/scanners/grype_scanner.py (_declared_grype_db_bound) [presence check] if name not in environ and config_key_for_env.get(name) not in user_config_keys
automated_security_helper/utils/process_env.py (apply_environ_overrides) [environ.get] previous = {key: os.environ.get(key) for key in overrides}
automated_security_helper/utils/process_env.py (apply_environ_overrides) [environ.pop] os.environ.pop(key, None)
automated_security_helper/utils/process_env.py (restore_environ) [environ.pop] os.environ.pop(key, None)
automated_security_helper/utils/sandbox/policy.py (_env_named_read_paths) [environ.get] value = os.environ.get(name, "")
automated_security_helper/utils/sandbox/policy.py (_uv_environment) [environ.get] if path is None or os.environ.get(name):