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
{{ message }}
Repository navigation
bug(flag): --generate-default-config does not write license category lists #11737
--generate-default-config does not write the license category lists (license.forbidden, license.restricted and others). The Custom Classification section in docs/guide/scanner/license.md tells users to generate the default config and edit these lists.
Since #9732 (v0.68.0), config-only flags do not use viper.SetDefault, and their defaults are applied when the flag value is read. --generate-default-config writes only the keys from viper.AllKeys(), so these defaults are lost. The six license category flags are the only config-only flags with a default value. Trivy 0.67.2 writes these lists, and 0.68.2 does not.
trivy-default.yaml contains all six category lists with their built-in licenses, as in Trivy 0.67.2. The built-in permissive list is empty, so it is written as permissive: [].
Activity