Skip to content

Commit 6d1c174

Browse files
committed
fix(agiloft): regenerate tool metadata and drop a JWT-shaped test fixture
Two CI failures, both mine. The generated tool metadata was stale: this branch reworded the create record fields output, which feeds it. Regenerated - the only entry that changes is agiloft_create_record. The login token-integrity test built its fake token from a real JWT header segment, which reads as a live credential to secret scanning. The test only needs an opaque value that happens to contain the password, so it uses one that cannot be mistaken for a token.
1 parent b769a15 commit 6d1c174

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

apps/sim/tools/agiloft/utils.server.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,13 @@ describe('agiloftLoginPinned token integrity', () => {
174174
* break every request that carries it, so parsing stays on the raw text.
175175
*/
176176
it('returns the token intact when the password occurs inside it', async () => {
177+
/**
178+
* Deliberately not JWT-shaped: a realistic header segment reads as a real
179+
* token to secret scanners. All this test needs is an opaque value that
180+
* happens to contain the password.
181+
*/
177182
const password = 'abc'
178-
const token = `eyJhbGciOiJIUzI1NiJ9.${password}payload.signature`
183+
const token = `opaque-session-value-${password}-trailing`
179184

180185
mockSecureFetch.mockResolvedValueOnce(
181186
mockResponse({ json: { access_token: token, authentication_scheme: 'Bearer ' } })

apps/sim/tools/generated/tool-outputs.ts

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)