Skip to content

ci(SEC-104): pin Node 24.22.1 exactly in devEngines and workflows - #391

Merged
willleeney merged 3 commits into
mainfrom
s2d2/sec-104-exact-node-pins
Oct 28, 2026
Merged

willleeney merged 3 commits into
mainfrom
s2d2/sec-104-exact-node-pins

Conversation

@glebedel

Copy link
Copy Markdown
Contributor

Removes the last floating Node versions in this repo:

  • devEngines.runtime.version (root and examples/): ^24.11.0 -> 24.22.1. pnpm downloads this runtime (onFail: download) and the lockfile had resolved it to 24.21.0, which is vulnerable to CVE-2026-111497. The node@runtime lockfile entry now points at 24.22.1; every variant's integrity comes from the official v24.22.1 SHASUMS256.txt.
  • release.yaml: node-version: lts/* -> node-version-file: package.json (setup-node v6.2.0 -> v7.0.0, already used in ci.yaml; reading devEngines needs v6.3.0 or later).
  • ci.yaml conformance job: node-version: 24 -> node-version-file: sdk/package.json.

engines.node (>=20.19.6) is left alone: it is the published library's consumer range, not the version we run.

The nix shell still takes nodejs_24 from the locked nixpkgs revision, which the weekly flake update moves.

Refs SEC-104. Requested by guillaume@stackone.com in Slack.

🤖 Generated with Claude Code

Refs SEC-104.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@glebedel
glebedel requested a review from a team as a code owner October 26, 2026 17:42
Copilot AI balanced review requested due to automatic review settings October 26, 2026 17:42
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T17:45:19.532988Z — PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Pins Node to 24.22.1 in devEngines, the pnpm lockfile, and CI/release workflows, replacing floating Node ranges; a bounded tooling/security-pinning change with no runtime or public-contract impact.

View guided diff | Turn on auto-fix | Re-trigger cubic

willleeney and others added 2 commits October 28, 2026 14:24
devEngines now pins Node 24.22.1 exactly, and nixpkgs (master included) still ships
nodejs_24 24.21.0. Inside `nix develop` the shell's Node wins over setup-node's, so npm
refused to pack (EBADDEVENGINES) in dry-publish, and would have in the release job too. Both
now set up pnpm and Node from package.json, install, and run pnpm directly.
@pkg-pr-new

pkg-pr-new Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/StackOneHQ/stackone-ai-node/@stackone/ai@391

commit: 51d6304

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 2 files (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Pins Node to patched 24.22.1 in devEngines and CI, replacing the floating range that resolved to vulnerable 24.21.0; CI workflows switch from Nix shell to setup-node/pnpm to honor the exact pin. Bounded tooling/security fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

@willleeney
willleeney merged commit 091b039 into main Oct 28, 2026
38 of 40 checks passed
@willleeney
willleeney deleted the s2d2/sec-104-exact-node-pins branch October 28, 2026 15:13
willleeney added a commit that referenced this pull request Oct 28, 2026
… (ENG-3175)

search_execute mode now lists StackOne's stackone_search_actions /
stackone_execute_action / stackone_list_accounts once for the whole account scope,
naming every account as a repeated x-account-id query parameter, instead of a pair per
account. search() and execute() make one call each: hits name their accounts in
available_accounts rather than one hit per account, and the server, not the SDK,
refuses an action whose connector is linked on several accounts. The per-connector
merge, connector routing and failed-account retry are gone.

Changes for 3.0.0 callers: toolMode 'search_execute' serves the trio, not a pair per account;
search() hits carry available_accounts instead of account_id; an ambiguous execute()
throws StackOneAPIError from the server rather than ToolSetConfigError.

Release-As: 3.1.0

Follows unified-cloud-api#9417. A search_execute listing names its accounts as one
comma-separated x-account-id query value, and a scope of more than 50 accounts throws
ToolSetConfigError (too-many-accounts) before any request.

For one account the server serves <provider>_<accountId>_search_actions and
_execute_action rather than the trio. The SDK presents them as stackone_search_actions
and stackone_execute_action: the served names read as those names in descriptions,
schemas and result strings; a stackone_account_id or provider naming the account or its
connector is dropped, any other throws ToolArgumentsError (account-outside-scope,
provider-outside-scope); search hits gain provider and available_accounts. search(),
execute(), submitFeedback() and fetchTools() look the same for one or many accounts.

Changes for 3.0.0 callers: x-account-id is sent as one comma-separated value; search_execute
scopes are capped at 50 accounts; SearchHitAccount.name is optional.

Rebased onto main after #392 and #391; written in their lint style (oxlint 1.88).

Release-As: 3.1.0
willleeney added a commit that referenced this pull request Oct 28, 2026
… (ENG-3175)

search_execute mode now lists StackOne's stackone_search_actions /
stackone_execute_action / stackone_list_accounts once for the whole account scope,
naming every account as a repeated x-account-id query parameter, instead of a pair per
account. search() and execute() make one call each: hits name their accounts in
available_accounts rather than one hit per account, and the server, not the SDK,
refuses an action whose connector is linked on several accounts. The per-connector
merge, connector routing and failed-account retry are gone.

Changes for 3.0.0 callers: toolMode 'search_execute' serves the trio, not a pair per account;
search() hits carry available_accounts instead of account_id; an ambiguous execute()
throws StackOneAPIError from the server rather than ToolSetConfigError.

Follows unified-cloud-api#9417. A search_execute listing names its accounts as one
comma-separated x-account-id query value, and a scope of more than 50 accounts throws
ToolSetConfigError (too-many-accounts) before any request.

For one account the server serves <provider>_<accountId>_search_actions and
_execute_action rather than the trio. The SDK presents them as stackone_search_actions
and stackone_execute_action: the served names read as those names in descriptions,
schemas and result strings; a stackone_account_id or provider naming the account or its
connector is dropped, any other throws ToolArgumentsError (account-outside-scope,
provider-outside-scope); search hits gain provider and available_accounts. search(),
execute(), submitFeedback() and fetchTools() look the same for one or many accounts.

Changes for 3.0.0 callers: x-account-id is sent as one comma-separated value; search_execute
scopes are capped at 50 accounts; SearchHitAccount.name is optional.

Rebased onto main after #392 and #391; written in their lint style (oxlint 1.88).

Release-As: 3.1.0
willleeney added a commit that referenced this pull request Oct 29, 2026
… (ENG-3175) (#389)

* feat: one search tool and one execute tool spanning the account scope (ENG-3175)

search_execute mode now lists StackOne's stackone_search_actions /
stackone_execute_action / stackone_list_accounts once for the whole account scope,
naming every account as a repeated x-account-id query parameter, instead of a pair per
account. search() and execute() make one call each: hits name their accounts in
available_accounts rather than one hit per account, and the server, not the SDK,
refuses an action whose connector is linked on several accounts. The per-connector
merge, connector routing and failed-account retry are gone.

Changes for 3.0.0 callers: toolMode 'search_execute' serves the trio, not a pair per account;
search() hits carry available_accounts instead of account_id; an ambiguous execute()
throws StackOneAPIError from the server rather than ToolSetConfigError.

Follows unified-cloud-api#9417. A search_execute listing names its accounts as one
comma-separated x-account-id query value, and a scope of more than 50 accounts throws
ToolSetConfigError (too-many-accounts) before any request.

For one account the server serves <provider>_<accountId>_search_actions and
_execute_action rather than the trio. The SDK presents them as stackone_search_actions
and stackone_execute_action: the served names read as those names in descriptions,
schemas and result strings; a stackone_account_id or provider naming the account or its
connector is dropped, any other throws ToolArgumentsError (account-outside-scope,
provider-outside-scope); search hits gain provider and available_accounts. search(),
execute(), submitFeedback() and fetchTools() look the same for one or many accounts.

Changes for 3.0.0 callers: x-account-id is sent as one comma-separated value; search_execute
scopes are capped at 50 accounts; SearchHitAccount.name is optional.

Rebased onto main after #392 and #391; written in their lint style (oxlint 1.88).

Release-As: 3.1.0

* ci(ENG-3175): pin sdk-conformance at #9's merge and the Python SDK at its matching PR (#231)

Both SDKs' conformance runs grade the pair together, and the new contract needs both on it.
The Python pin moves to its merge commit once #231 lands.

* ci(ENG-3175): take the conformance job's pnpm from sdk-conformance's packageManager

sdk-conformance moved to pnpm 11.17.0 (#12), and pnpm/action-setup refuses a version key that
disagrees with package_json_file. Each SDK checkout still runs its own pnpm 10.26.0: pnpm
switches to a project's packageManager version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants