Skip to content

Commit 833fe7b

Browse files
committed
test(webhooks): use an unmistakable placeholder for the token fixture
`tok_abcdefgh1234` matches a generic token pattern and tripped GitGuardian. The value only has to be long enough to clear the value-matching threshold, so name it for what it is.
1 parent d117b81 commit 833fe7b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

apps/sim/lib/webhooks/providers/generic.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,18 +184,18 @@ describe('genericHandler.formatInput exposed headers', () => {
184184
*/
185185
it('withholds any header carrying the configured token, whatever it is named', async () => {
186186
const result = await withHeaders(
187-
{ 'x-vendor-signature': 'tok_abcdefgh1234', 'x-event-name': 'created' },
188-
{ token: 'tok_abcdefgh1234' }
187+
{ 'x-vendor-signature': 'not-a-real-token-fixture', 'x-event-name': 'created' },
188+
{ token: 'not-a-real-token-fixture' }
189189
)
190190

191191
expect(result.input).toEqual({ headers: { 'x-event-name': 'created' } })
192192
})
193193

194194
it('withholds a header that merely embeds the token', async () => {
195195
const result = await withHeaders(
196-
{ 'x-vendor-auth': 'Token tok_abcdefgh1234' },
196+
{ 'x-vendor-auth': 'Token not-a-real-token-fixture' },
197197
{
198-
token: 'tok_abcdefgh1234',
198+
token: 'not-a-real-token-fixture',
199199
}
200200
)
201201

0 commit comments

Comments
 (0)