扫描密钥
通过 scan.ozsettings 文件为所有应用程序、项目和文件夹全局启用密钥扫描程序。
通过将 <data_dir>/config/scan.ozsettings 文件中的 enable_secrets_scanner 设置编辑为 true,可以为所有应用程序、项目和文件夹启用密钥扫描程序。
enable_secrets_scanner 设置的缺省值为 false。
例如,在 scan.ozsettings 中,找到如下所示的设置,并将 value="false" 更改为 value="true"。
<Setting
name="enable_secrets_scanner"
read_only="false"
default_value="false"
description="Enable the secrets scanner for all applications projects and folders. When set to true, the secrets scanner is automatically activated for every scan.
When set to false, secrets scanning must be enabled on a per-application or per-project basis."
type="bool"
value="false"
display_name="Enable Secrets Scanner"
hidden="true"
/>
当在 scan.ozsettings 中启用密钥扫描时,AppScan® Source 会在控制台日志中显示消息:Secrets scanning is enabled globally via the scan.ozsettings file。