Settings¶
This page details the non-plugin settings available within the Surfactant configuration file.
Each subsection should be prepended to the option name to form the complete option, e.g., core.output_format.
See the this page for details on how to change settings using surfactant config.
core¶
output_format
SBOM output format, see
--list-output-formatsfor list of options; default is CyTRICS.
author_name
Name of the BOM author.
author_type
Type of the BOM author, such as name, organization, or program.
include_all_files
Include all files in the SBOM (default). Set to
falseto only include files with types recognized by Surfactant; default istrue.
docker¶
enable_docker_scout
Controls whether Docker Scout is enabled. Default is
true. Docker Scout must be installed on the same system as Surfactant to work. To disable Docker Scout and/or suppress the message about installing Docker Scout, runsurfactant config docker.enable_docker_scout false.
macho¶
Note: Mach-O file support requires installing Surfactant with the
machooptional dependencies (e.g.pipx install surfactant[macho]).
include_bindings_exports
Include bindings/exports information for Mach-O files.
include_signature_content
Include signature content for Mach-O files.
sources¶
Surfactant supports overriding database source URLs via the sources section in the settings configuration file. Each option is of the form
sources.
. Override the URL for the specified database at runtime. Values set via surfactant config take precedence over entries in
database_sources.tomland hard-coded defaults.Usage:
surfactant config sources.<category>.<library> <new_url>
Example:
surfactant config sources.js_library_patterns.retirejs https://new-url.com
decompression¶
extract_dir
Directory where files are extracted when decompressing files. Default is the system’s temporary directory.
extract_prefix
Prefix for extract directories created when decompressing files. Default is
surfactant-temp.
cache_extractions
Controls whether to cache decompressed/extracted files. If Surfactant fails to exit successfully, the cache will be used to prevent re-extractions. If set to
true, decompressed files will be cached in theextract_dirdirectory. Default istrue.
persist_extractions
Controls whether to persist decompressed files after Surfactant exits successfully. If set to
true, decompressed files will be kept in theextract_dirdirectory. Default isfalse.