Skip to content

chore(satellites): fix milk/terrapin CI checkout pin and drop Node/ReScript steps - #19

Merged
hyperpolymath merged 1 commit into
mainfrom
chore/satellite-ci-bun-and-pin
Nov 27, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
chore/satellite-ci-bun-and-pin

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Fixes the nested satellite CI for milk-ssg and terrapin-ssg. These files do not run on GitHub at this path, but should be correct when the satellites are split out.

Changes:

  • terrapin-ssg ci.yml: the security job's actions/checkout pin had text pasted into the SHA. Restored to 11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 (verified against the v4.2.2 tag; the same pin is used elsewhere in this repo).
  • milk-ssg and terrapin-ssg ci.yml: removed setup-node and npm steps. The adapters are now AffineScript (adapters/src/*.affine). There is no adapters/bun.lock, so no bun install --frozen-lockfile or build step was added (and so no setup-bun step either); a comment marks where to add one once a lockfile exists. The adapter job now checks that the .affine source exists.
  • milk-ssg ci.yml: the adapter language check, SPDX check, secrets grep and sanitizePath/execSync checks now target .affine instead of .res (the old .res-only language check would fail on the current tree).
  • terrapin-ssg ci.yml: adapter checks now target TerrapinAdapter.affine.
  • milk-ssg Justfile: stale .res paths in the security recipe now point at .affine.

Not changed (follow-up): adapters/package.json in both satellites still describes ReScript builds, and the Justfile adapter recipes still call npm/npx. Other satellites (parallax, prodigy, rescribe, wagasm, zigzag, pharos, redshift) also use setup-node/npm, but their workflows differ, so they are not included here.

Checks:

  • actionlint was not run because its download was blocked in this environment.
  • Passed locally: scripts/check-preserved-language-policy.sh (0 violations), tests/preservation-policy-controls.sh, scripts/verify-preservation.sh.

Generated by Claude Code

…Script steps

- terrapin-ssg: restore corrupted actions/checkout pin to
  11bd71901bbe5b1630ceea73d27597364c9af683 (v4.2.2)
- milk-ssg, terrapin-ssg: remove setup-node and npm steps; adapters are
  AffineScript (.affine) and there is no adapters/bun.lock yet, so no
  install or build step runs; check the .affine source instead
- point stale adapters/src/*.res checks (CI and milk-ssg Justfile) at .affine
@gitnotebooks

gitnotebooks Bot commented Nov 26, 2026

Copy link
Copy Markdown

Review these changes at https://app.gitnotebooks.com/hyperpolymath/poly-ssg/pull/19

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Chores
    • CI now checks that adapter source files are present instead of building adapters and verifying generated output.
    • Security checks now scan AffineScript adapter sources for potential secrets and unsafe command execution.
    • The adapter checks no longer install dependencies or set up Node.js.

The milk-ssg and terrapin-ssg CI workflows now target AffineScript adapter files. The milk-ssg workflow replaces its ReScript build job with a source-presence check. The terrapin-ssg workflow removes Node/npm setup and ReScript verification.

Changes: Milk adapter CI

Layer / File(s) Summary
Update adapter source and security checks
.github/workflows/ci.yml, Justfile
Adapter language, SPDX, secret, sanitisation and command-injection checks now target .affine files.
Replace adapter build with source check
.github/workflows/ci.yml
The workflow checks for MilkAdapter.affine instead of building the adapter. ci-complete depends on the source check and reports source presence.

Terrapin adapter CI

Layer / File(s) Summary
Update adapter security and presence checks
.github/workflows/ci.yml
The security job uses a different checkout action reference and checks TerrapinAdapter.affine. The adapter-check job reports whether the AffineScript source exists and removes Node/npm setup and ReScript verification.

Estimated code review effort: 2 (Simple) | ~15 minutes

Change: Other

Possibly related issues

  • hyperpolymath/poly-ssg issue 2 — This PR updates two satellite CI workflows to use AffineScript adapter checks, which addresses part of the workflow remediation described in the issue.
Merge Risk: Minimal · up to 1745e

This change aligns two satellite CI workflows and one security recipe with the current AffineScript adapter sources. It does not affect runtime behavior, and the workflows do not run at their current repository path. No merge-blocking risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: fixing the milk/terrapin CI checkout pin and removing the Node/ReScript steps. It matches the changeset, which restores the terrapin-ssg actions/checkout SHA and remov…
Description check Passed The description is specific and matches the changeset. It explains the restored actions/checkout pin in terrapin-ssg, the removal of setup-node and npm steps, the switch of milk-ssg and terrapin-ssg a…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: fixing the milk/terrapin CI checkout pin and removing the Node/ReScript steps. It matches the changeset, which restores the terrapin-ssg actions/checkout SHA and removes setup-node and npm steps from both nested CI files. The chore(satellites) prefix is a conventional-commit scope, not noise.

Full details: Description check

Explanation

The description is specific and matches the changeset. It explains the restored actions/checkout pin in terrapin-ssg, the removal of setup-node and npm steps, the switch of milk-ssg and terrapin-ssg adapter checks to .affine files, and the milk-ssg Justfile path updates. It also lists checks that were run and follow-up work that was not done.

Finishing Touches

Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: cf57f467-29f2-4d0b-89bb-2491778a2b76
Commits

Reviewing files that changed from the base of the PR and between 3884c28 and 1745e63.

Files selected for processing: 3

  • satellites/milk-ssg/.github/workflows/ci.yml
  • satellites/milk-ssg/Justfile
  • satellites/terrapin-ssg/.github/workflows/ci.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Recent review details

Context from checks skipped due to timeout: 2

  • GitHub Check: CodeRabbit
  • GitHub Check: analyze (javascript-typescript, none)
CI failures not shown inline: 1

GitHub Actions: Hypatia Security Scan / Hypatia Neurosymbolic Analysis: chore(satellites): fix milk/terrapin CI checkout pin and drop Node/ReScript steps

Conclusion: failure

View job details

##[group]Run if [ ! -f hypatia-v2 ]; then
 �[36;1mif [ ! -f hypatia-v2 ]; then�[0m
 �[36;1m  echo "Building hypatia-v2 scanner..."�[0m
 �[36;1m  cd scanner�[0m
 �[36;1m  mix deps.get�[0m
 �[36;1m  mix escript.build�[0m
 �[36;1m  mv hypatia ../hypatia-v2�[0m
 �[36;1mfi�[0m
 shell: /usr/bin/bash -e {0}
 env:
   INSTALL_DIR_FOR_OTP: /home/runner/work/_temp/.setup-beam/otp
   INSTALL_DIR_FOR_ELIXIR: /home/runner/work/_temp/.setup-beam/elixir
 ##[endgroup]
 ##[error]An error occurred trying to start process '/usr/bin/bash' with working directory '/hypatia'. No such file or directory
Additional comments: 3

satellites/terrapin-ssg/.github/workflows/ci.yml: 3

83-83: LGTM!

110-111: LGTM!

174-176: LGTM!

Also applies to: 178-179, 181-181

@sonarqubecloud

Copy link
Copy Markdown

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

@linear-code
linear-code Bot marked this pull request as ready for review November 26, 2026 22:43
@hyperpolymath
hyperpolymath merged commit 2589490 into main Nov 27, 2026
19 of 21 checks passed
@hyperpolymath
hyperpolymath deleted the chore/satellite-ci-bun-and-pin branch November 27, 2026 12:26
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.

3 participants