diff --git a/internal/commands/ignore.go b/internal/commands/ignore.go index 401e9a15d..01b09e94c 100644 --- a/internal/commands/ignore.go +++ b/internal/commands/ignore.go @@ -480,6 +480,10 @@ func setLogLevel(cmd *cobra.Command) { } func writeIgnoreFile(ignoredFingerprints map[string]ignoretypes.IgnoredFingerprint, bearerIgnoreFilePath string) error { + if bearerIgnoreFilePath == "" { + bearerIgnoreFilePath = ignore.DefaultIgnoreFilepath + } + data, err := json.MarshalIndent(ignoredFingerprints, "", " ") if err != nil { // failed to marshall data