Skip to content

ci: pin Windows test actions - #246

Merged
abogartz merged 3 commits into
abogartz:mainfrom
WhollyMindless:fix/windows-action-pins-237
Nov 2, 2026
Merged

abogartz merged 3 commits into
abogartz:mainfrom
WhollyMindless:fix/windows-action-pins-237

Conversation

@WhollyMindless

Copy link
Copy Markdown
Contributor

Closes #237.

Pin the Windows test job's checkout and setup-bun actions to the same commit SHAs and version comments used by the Linux CI and release jobs. Set checkout's persist-credentials: false to match those jobs as well.

Validation: parsed the workflow YAML and verified both pins match Linux CI/release, credential persistence is disabled, and every other parsed workflow setting is unchanged. git diff --check passes. This is a workflow-only change; hosted CI will exercise the pinned actions and run the project checks.

Please feel free to request changes, defer, or close this if it does not fit your plans. Merge remains your call.

@abogartz abogartz left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Verdict: APPROVE

Workflow-only change, verified against the tree and upstream, not the body.

  • The two pinned SHAs are byte-identical to the ones already used by the lint/test/smoke jobs and release.yml, and git ls-remote confirms they are exactly what the tags claim: actions/checkout v4.4.0 = 11d5960a326750d5838078e36cf8b85af677262, oven-sh/setup-bun v2.2.0 = 0c5077e51419868618aeaa5fe8019c62421857d6.
  • persist-credentials: false now matches every other job in both workflows.
  • The diff touches only the test-windows job's two uses: lines plus the with: block; bun-version: 1.4.4 and the run steps are untouched. Single commit, nothing else in it.
  • CI at head 7f6c7e2: lint / test / test-windows / smoke all pass, so the pinned actions demonstrably work on the Windows runner.

Note for merge: mergeStateStatus is currently BEHIND (main moved to the 0.15.5 release commit after this branch was cut); gh pr update-branch 246 before merging.

@abogartz abogartz left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Reviewed adversarially at 7f6c7e2. Verdict: APPROVE.

Claims checked against the tree and the upstream repos:

  • Both pins are byte-identical to the Linux CI jobs and the release job on main (actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0, oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0).
  • The SHAs really resolve to those tags: git ls-remote https://github.com/actions/checkout refs/tags/v4.4.0 → 11d5960a…; git ls-remote https://github.com/oven-sh/setup-bun refs/tags/v2.2.0 → 0c5077e5…. The version comments are accurate, not decorative.
  • persist-credentials: false is safe here: the Windows job's only post-checkout steps are bun install --frozen-lockfile and bun run test — no git write, no gh, nothing that reads the persisted token.
  • The diff is confined to the test-windows job; every other parsed setting is unchanged (git diff origin/main...HEAD is exactly these 4/2 lines; git diff --check clean; YAML parses).
  • CI exercised the change for real: all four legs green at this head, including test-windows itself running the pinned actions — so the pins are not just syntactically valid, they work on the runner.

Note (not a blocker): the branch base is 0.15.3 so the PR reports BEHIND, but it is MERGEABLE and the change is workflow-only; GitHub will merge cleanly whenever you take it.

@abogartz abogartz left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

APPROVE

Reviewed adversarially at 7f6c7e2 against base c3dea96. Every body claim re-verified against the tree, not the message:

  • Pin identity. The Windows job now uses actions/checkout@11d5960a326750d5838078e36cf38b85af677262 and oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 — byte-identical to the lint, test, and smoke jobs and to release.yml (lines 49/58). gh api repos/actions/checkout/git/ref/tags/v4.4.0 and gh api repos/oven-sh/setup-bun/git/ref/tags/v2.2.0 both resolve to exactly these SHAs, so the version comments are truthful, not decoration.
  • Credential persistence. persist-credentials: false present on all four checkout steps in ci.yml; the Windows job previously persisted credentials by default.
  • Nothing else changed. git diff touches only the two uses: lines plus the with: block; bun-version: 1.4.4 preserved; job-level and workflow-level permissions: contents: read untouched; no other workflow setting differs. git diff --check clean.
  • CI. lint / test / test-windows / smoke all green on this head, so the pinned actions actually execute on the Windows runner.

Merge note (not a review blocker): the PR is currently BEHIND main; gh pr update-branch 246 before merging.

@abogartz abogartz left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Verdict: APPROVE

Adversarially verified against the tree, not the body:

  • Pins match the Linux CI and release jobs byte-for-byte (11d5960… / 0c5077e…), and both SHAs resolve to the real upstream tags via the GitHub API: actions/checkout v4.4.0 → 11d5960a326750d5838078e36cf38b85af677262, oven-sh/setup-bun v2.2.0 → 0c5077e51419868618aeaa5fe8019c62421857d6. Version comments are truthful.
  • persist-credentials: false is safe here: the Windows job's only steps are checkout → setup-bun → bun install --frozen-lockfile → bun run test; nothing writes to git. It also now matches the four other jobs that already set it.
  • Diff is exactly the claimed scope: 1 file, 4 insertions, 2 deletions; every other workflow setting unchanged.
  • All four CI legs (lint / test / test-windows / smoke) are green at head 7f6c7e2, so the pinned actions have actually executed.

Nothing blocking, no nits.

@abogartz abogartz left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Verdict: APPROVE — reviewed at head 2e04495ab8749fb820217ca980dff12b900d5971 (merge of main 279df73 into the branch). Prior approvals covered head 7f6c7e2; this re-verifies the new head.

Claims verified against the tree, not the commit messages:

  • Pin identity. git grep 'uses:' across both workflows: the Windows job now uses actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 and oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0, byte-identical to the lint/test/smoke jobs and release.yml.
  • Pins are real. git ls-remote confirms 11d5960… = refs/tags/v4.4.0 (actions/checkout) and 0c5077e… = refs/tags/v2.2.0 (oven-sh/setup-bun).
  • persist-credentials. Now false on all four checkouts in ci.yml (lines 20/41/54/74), matching release.yml:52. The Windows job needs no checkout credentials (install + test only).
  • Nothing else changed. git diff origin/main...HEAD --numstat: 4 insertions, 2 deletions, .github/workflows/ci.yml only. git diff --check clean.
  • Red state reproduced at merge-base. git show 279df73:.github/workflows/ci.yml shows the Windows job on mutable actions/checkout@v4 / oven-sh/setup-bun@v2 with no persist-credentials — exactly issue #237. Fixed side is clean; the differential holds for the stated reason (pin policy at ci.yml:10-12).

Commands run (measured):

  • bun run typecheck — clean, 0 errors
  • bun run lint — 221 files checked, 498 warnings = base baseline (workflow YAML is not linted)
  • bun run test — 842 pass / 12 skip / 0 fail, 11901 expect() calls, 81 files
  • bun -e 'yaml.parse(…)' — ci.yml parses
  • gh pr checks 246 — 4/4 pass (lint, test, test-windows, smoke); test-windows itself exercises the new pins on a real Windows runner

Findings: none. Workflow-only change, matches the stated fix direction of #237 exactly.

Note: mergeStateStatus: BLOCKED is branch-protection awaiting a human approve/merge — mergeable itself is clean now that main is merged in.

@abogartz
abogartz merged commit 8dd43e6 into abogartz:main Nov 2, 2026
4 checks passed
@abogartz-opencode-self-improvement

Copy link
Copy Markdown

🎉 This PR is included in version 0.15.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test-windows CI job uses mutable action tags while the repo is SHA-pinned

2 participants