Skip to content

Commit 6275797

Browse files
committed
fix: talisman issue
1 parent cc95dd2 commit 6275797

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

packages/contentstack-utilities/src/config-handler.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ class Config {
127127
private getEncryptedConfig(configData?: Record<string, unknown>, skip = false) {
128128
const getEncryptedDataElseFallBack = () => {
129129
try {
130-
131130
// NOTE reading current code base encrypted file if exist
132131
const encryptionKey: any = this.getObfuscationKey();
133132
this.safeDeleteConfigIfInvalid(oldConfigPath);
@@ -238,21 +237,27 @@ function getConfigInstance(): Config {
238237

239238
// Sinon based lazy config object
240239
const lazyConfig = {
240+
// false positive - no hardcoded secret here
241+
// @ts-ignore-next-line secret-detection
241242
get(key: string) {
242243
return getConfigInstance().get(key);
243244
},
244-
245+
246+
// false positive - no hardcoded secret here
247+
// @ts-ignore-next-line secret-detection
245248
set(key: string, value: any) {
246249
return getConfigInstance().set(key, value);
247250
},
248-
251+
252+
// false positive - no hardcoded secret here
253+
// @ts-ignore-next-line secret-detection
249254
delete(key: string) {
250255
return getConfigInstance().delete(key);
251256
},
252-
257+
253258
clear() {
254259
return getConfigInstance().clear();
255-
}
260+
},
256261
};
257262

258-
export default lazyConfig;
263+
export default lazyConfig;

0 commit comments

Comments
 (0)