File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -134,8 +134,11 @@ exit $LASTEXITCODE
134134 process . env . SEO_DUNGEON_ALLOW_NO_ORIGIN = '1' ;
135135 assert . equal ( bridge . isAllowedOrigin ( undefined ) , true ) ;
136136
137+ const fakeOpenAiKey = 'sk-' + '1234567890abcdefghijklmnopqrstuvwxyz' ;
138+ const fakeGithubToken = 'ghp_' + '1234567890abcdefghijklmnopqrstuvwxyz123456' ;
139+ const fakeAwsKey = 'AKIA' + '1234567890ABCDEF' ;
137140 const redacted = bridge . redactSensitiveText (
138- ' api_key=sk-1234567890abcdefghijklmnopqrstuvwxyz token=ghp_1234567890abcdefghijklmnopqrstuvwxyz123456 AKIA1234567890ABCDEF'
141+ ` api_key=${ fakeOpenAiKey } token=${ fakeGithubToken } ${ fakeAwsKey } `
139142 ) ;
140143 assert ( ! redacted . includes ( 'abcdefghijklmnopqrstuvwxyz123456' ) , 'GitHub token should be redacted' ) ;
141144 assert ( ! redacted . includes ( '1234567890ABCDEF' ) , 'AWS key body should be redacted' ) ;
You can’t perform that action at this time.
0 commit comments