Skip to content

Fix the open code-scanning findings - #1572

Merged
zlareb1 merged 5 commits into
mainfrom
fix/code-scanning
Nov 26, 2026
Merged

zlareb1 merged 5 commits into
mainfrom
fix/code-scanning

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Changelog category

  • CI Fix or Improvement

Changelog entry

Omitted for CI.

Why

Coverage reports load their action from a full commit SHA, independent of the runner workspace. Translation finalization checks hosted CI on a trusted schedule before merging the exact validated commit. The comparison example installs its reference server from a committed lockfile. Release checks generate a fresh lock for the requested SDK release and peer, install that tree with lifecycle scripts disabled, and verify registry signatures before loading the SDK. The docs builder checks each parsed link destination before rewriting an English fallback.

Scope and risk

The coverage change affects report jobs. The WSL job launches its test script in the same Ubuntu distribution. Translation finalization runs on a 15-minute schedule. Finalizer runs and translation batches share a serialized queue that preserves pending manual requests. The translation producer keeps its existing triggers and six-hour schedule. The workflow linter understands the queue syntax and keeps the syntax, expression, and ShellCheck gates. The diff also formats the selector page and adds its route to the IndexNow test's expected list. Both checks fail on main without these corrections.

Compatibility, rollout and rollback

  • Wire changes. None.
  • Operator steps. None.
  • Rollback. Revert the commits to restore the former workflow paths. There is no data migration.

Tests

  • make format-check, make lint, and make typecheck.
  • Translation automation, release preflight, documentation links, and public-copy tests. 462 passed. The IndexNow suite passed all 14 tests with the selector route included.
  • node --test docs/scripts/*.test.mjs and npm --prefix docs run build. 21 tests passed and the site built.
  • Workflow syntax and ShellCheck passed. The workflow scan cleared all 12 targeted findings with no new findings.
  • Scorecard no longer reports the comparison script's install. The release smoke tests still resolve the published packages they verify.
  • The reference package installed from its lockfile. Published SDK checks passed for a stable release, a release candidate, an optional peer, and an SDK-only install.

AI assistance in the code

  • AI-generated (Codex). Codex ran the checks listed above.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • Local format, lint, type checks and focused tests pass.
  • Applicable docs describe the workflow and this description names the operator and wire changes.
  • Commits are signed off.

Note

Low Risk
Mostly CI, workflow, and docs-build behavior; no production runtime or auth paths change.

Overview
CI hardening and scanner fixes across workflows, release checks, i18n, and docs tooling.

Changed-line coverage jobs now call patch-coverage by pinned commit (ClickHouse/loom@df405e9…) instead of ./.github/actions/patch-coverage, and native SDK checkouts no longer sparse-checkout that action locally.

i18n drops the workflow_run hook on ci; a 15-minute cron runs finalization, concurrency.queue: max serializes finalize vs update batches, and update only runs on the six-hour schedule (plus push/dispatch as before). CONTRIBUTING matches that model.

Release smoke tests build a fresh package.json/lock with npm pkg set, then npm ci with --ignore-scripts and npm audit signatures for the SDK and peer matrix rows (peer name + semver requirement split for npm pkg set).

Plugin WSL logic moves to dev/test_plugins_wsl.sh, invoked via wsl.exe; workflow path filters include the script. Workflow lint switches from actionlint to jactionlint (--profile correctness).

The coding-agent comparison example installs @modelcontextprotocol/server-memory from a committed lockfile via npm ci instead of npm install @…@version. rewritePublishedDocLinks always walks the AST and only rewrites when a link resolves—no blanket skip on missing blob text. Tests/IndexNow add /agent-memory-selector; selector Astro is formatting-only.

Reviewed by Cursor Bugbot for commit 530efe4. Bugbot is set up for automated code reviews on this repo. Configure here.

Resolve local actions from the workflow commit, verify translations from a scheduled job, install npm packages from lockfiles, and validate each docs destination as a parsed link.

Signed-off-by: Lareb Zafar <[email protected]>
@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
loom-docs Ready Ready Preview Nov 26, 2026 5:39pm UTC
loom-telemetry Ready Ready Preview Nov 26, 2026 5:39pm UTC

Request Review

The plugin scanner requires a full SHA for action references it treats as remote.

Signed-off-by: Lareb Zafar <[email protected]>
Finalizer polls and translation batches share one queue. Keep pending requests available while the current run finishes.

Signed-off-by: Lareb Zafar <[email protected]>
@zlareb1
zlareb1 merged commit 287bc1a into main Nov 26, 2026
84 checks passed
@zlareb1
zlareb1 deleted the fix/code-scanning branch November 26, 2026 18:06
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.

1 participant