File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
# FOSSA CLI Changelog
2
2
3
+ ## 3.11.4
4
+
5
+ - Stops logging a secret under ` --x-snippet-scan ` . ([ #1579 ] ( https://github.com/fossas/fossa-cli/pull/1580 ) )
6
+
3
7
## 3.11.3
4
8
5
9
- Picks up the latest version of a dependency for ` --x-snippet-scan ` . ([ #1579 ] ( https://github.com/fossas/fossa-cli/pull/1579 ) )
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ import Data.Hashable (Hashable)
39
39
import Data.Maybe (mapMaybe )
40
40
import Data.String.Conversion (ToText (toText ), toString )
41
41
import Data.Text (Text )
42
- import Data.Text qualified as T
43
42
import Data.Text qualified as Text
44
43
import Data.Text.Encoding qualified as Text.Encoding
45
44
import Effect.Exec (AllowErr (Never ), Command (.. ), renderCommand )
@@ -259,14 +258,14 @@ ficusCommand ficusConfig bin = do
259
258
260
259
maskApiKeyInCommand :: Text -> Text
261
260
maskApiKeyInCommand cmdText =
262
- case T . splitOn " --secret " cmdText of
261
+ case Text . splitOn " --secret " cmdText of
263
262
[before, after] ->
264
- case T .words after of
263
+ case Text .words after of
265
264
(_ : rest) ->
266
265
before
267
266
<> " --secret "
268
267
<> " ******"
269
- <> if null rest then " " else " " <> T .unwords rest
268
+ <> if null rest then " " else " " <> Text .unwords rest
270
269
[] -> cmdText
271
270
_ -> cmdText
272
271
You can’t perform that action at this time.
0 commit comments