Skip to content

Commit 04fa5f6

Browse files
committed
chore: dotenv-diff ignore
1 parent 788391b commit 04fa5f6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/cli/src/core/security/secretDetectors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function ignoreUrlsMatch(url: string, ignoreUrls?: string[]): boolean {
129129
* relative to string length
130130
*
131131
* Examples that should pass:
132-
* 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
132+
* 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' // dotenv-diff-ignore
133133
* '0123456789abcdef'
134134
* 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567' (base32 alphabet)
135135
*/

packages/cli/test/unit/core/security/secretDetectors.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ describe('secretDetectors', () => {
130130

131131
it('should detect high-entropy long strings', () => {
132132
const source =
133-
'const value = "Xy9Pq2Wz8Rt4Lm6Ks0Hv3Jn7Bp1Df5Cg9Ea2Ub6Tx4Sy8Rw3Qu7Pv0Nz5My1Lx9Kw2Jv6Iu4Ht0Gs8Fr3Eq7Dp1Co5Bn9Am";'; // dotenv-diff-ignore
133+
'const value = "Xy9Pq2Wz8Rt4Lm6Ks0Hv3Jn7Bp1Df5Cg9Ea2Ub6Tx4Sy8Rw3Qu7Pv0Nz5My1Lx9Kw2Jv6Iu4Ht0Gs8Fr3Eq7Dp1Co5Bn9Am";';
134134
const findings = detectSecretsInSource('test.ts', source);
135135

136136
expect(findings.length).toBeGreaterThan(0);

0 commit comments

Comments
 (0)