fix(workflows): harden workflow API auth routes #11630
Annotations
4 errors and 5 warnings
|
Run tests with coverage
Process completed with exit code 1.
|
|
Run tests with coverage:
apps/sim/app/api/workflows/[id]/execute/route.async.test.ts#L100
AssertionError: expected [ 'authorization' ] to deeply equal [ 'authorization', …(4) ]
- Expected
+ Received
[
"authorization",
- "authorizeWorkflowByWorkspacePermission",
- "preprocessing",
- "getJobQueue",
- "enqueue",
]
❯ expectCheckpointOrder app/api/workflows/[id]/execute/route.async.test.ts:100:23
❯ app/api/workflows/[id]/execute/route.async.test.ts:259:5
|
|
Run tests with coverage:
apps/sim/app/api/workflows/[id]/execute/route.async.test.ts#L197
AssertionError: Expected async execute route to return 202, got 500 with body: {"error":"[vitest] No \"AuthType\" export is defined on the \"@/lib/auth/hybrid\" mock. Did you forget to return it from \"vi.mock\"?\nIf you need to partially mock a module, you can use \"importOriginal\" helper inside:\n"}: expected 500 to be 202 // Object.is equality
- Expected
+ Received
- 202
+ 500
❯ app/api/workflows/[id]/execute/route.async.test.ts:197:7
|
|
Run tests with coverage
sim#test: command (/home/runner/_work/sim/sim/apps/sim) /home/runner/.bun/bin/bun run test exited (1)
|
|
Complete job
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, actions/setup-node@v4, useblacksmith/stickydisk@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Post Mount node_modules (Sticky Disk)
Skipping sticky disk commit due to previous step failures
|
|
Post Mount node_modules (Sticky Disk)
Found 2 failed/cancelled steps in previous workflow steps
|
|
Post Mount Turbo cache (Sticky Disk)
Skipping sticky disk commit due to previous step failures
|
|
Post Mount Turbo cache (Sticky Disk)
Found 2 failed/cancelled steps in previous workflow steps
|
Loading