Skip to content

Commit edcec43

Browse files
committed
fix(webui): allowlist the shortcut storage key name for the leak scanner
The settings shortcut storage key reads like a credential to gitleaks' generic-api-key rule, so the release audit rejected this branch. It is a localStorage key name, not a secret, so allowlist it next to the other documented non-credentials.
1 parent b84f60f commit edcec43

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.gitleaks.toml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ paths = ['''(^|/)packages/(browser-extension/test/protocol\.test\.ts|webui/test/
1919
regexTarget = "secret"
2020
regexes = ['''^00112233445566778899aabbccddeeff$''']
2121

22+
[[rules.allowlists]]
23+
description = "WebUI shortcut storage key name, not a credential"
24+
condition = "AND"
25+
paths = ['''(^|/)packages/webui/src/client/projection/common/shortcuts\.ts$''']
26+
regexTarget = "match"
27+
regexes = ['''^SHORTCUT_STORAGE_KEY = "webui-shortcuts\.v1"$''']
28+
2229
[[rules.allowlists]]
2330
description = "Documented keyboard shortcut"
2431
condition = "AND"

0 commit comments

Comments
 (0)