@rightkit/ci 0.2.42 → 0.2.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/manifest.mjs CHANGED
@@ -1128,7 +1128,8 @@ function windowsSigningJob(manifest, pm, artifactPrefix) {
1128
1128
  RIGHT_GIT_FINALIZED_WINDOWS_ROOT: \${{ runner.temp }}/finalized-windows
1129
1129
  RIGHT_GIT_SOURCE_REVISION: \${{ needs.admission.outputs.source_revision }}`
1130
1130
  : ` LEGION_UNSIGNED_CANDIDATE_ROOT: \${{ runner.temp }}/unsigned-windows-candidate
1131
- LEGION_SOURCE_REVISION: \${{ env.RIGHT_GIT_SOURCE_REVISION }}`;
1131
+ RIGHT_GIT_SOURCE_REVISION: \${{ needs.admission.outputs.source_revision }}
1132
+ LEGION_SOURCE_REVISION: \${{ needs.admission.outputs.source_revision }}`;
1132
1133
  const uploadPath = releaseChain
1133
1134
  ? " ${{ runner.temp }}/finalized-windows/**"
1134
1135
  : " dist/releases/windows/**\n .right-release/receipts/windows-*.json";
@@ -1257,7 +1258,8 @@ function macosSigningJob(manifest, pm, artifactPrefix) {
1257
1258
  RIGHT_GIT_FINALIZED_MACOS_ROOT: \${{ runner.temp }}/finalized-macos
1258
1259
  RIGHT_GIT_SOURCE_REVISION: \${{ needs.admission.outputs.source_revision }}`
1259
1260
  : ` LEGION_UNSIGNED_CANDIDATE_ROOT: \${{ runner.temp }}/unsigned-macos-candidate
1260
- LEGION_SOURCE_REVISION: \${{ env.RIGHT_GIT_SOURCE_REVISION }}`;
1261
+ RIGHT_GIT_SOURCE_REVISION: \${{ needs.admission.outputs.source_revision }}
1262
+ LEGION_SOURCE_REVISION: \${{ needs.admission.outputs.source_revision }}`;
1261
1263
  const uploadPath = releaseChain
1262
1264
  ? " ${{ runner.temp }}/finalized-macos/**"
1263
1265
  : " dist/releases/mac/**\n .right-release/receipts/macos-*.json";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rightkit/ci",
3
- "version": "0.2.42",
3
+ "version": "0.2.44",
4
4
  "description": "Public-repo-only GitHub Actions workflow layer: templates, visibility gate, sync/drift/adopt/uninstall for right-git.",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "type": "module",
package/render.test.mjs CHANGED
@@ -180,6 +180,11 @@ test("rust-hybrid release candidate renders product scripts, artifact handoff, a
180
180
  assert.match(content, /pnpm run ci:candidate-check/);
181
181
  assert.match(content, /pnpm run release:admit/);
182
182
  assert.match(content, /pnpm run release:stage-summary/);
183
+ // Ownership approval supports only macOS and Windows: the admission job (which runs the ownership step) never renders on Linux.
184
+ const admission = content.match(/^ {2}admission:\n([\s\S]*?)^ {2}\S/m)?.[1] ?? "";
185
+ assert.match(admission, /RightKit ownership/);
186
+ assert.match(admission, /runs-on: macos-15\n/);
187
+ assert.doesNotMatch(admission, /runs-on: ubuntu|runs-on: \$\{\{[^}]*linux/i);
183
188
  assert.match(content, /Mozilla-Actions\/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba/);
184
189
  assert.match(content, /shared-key: widgets-rust/);
185
190
  assert.doesNotMatch(content, /bash \.\/scripts\/gate\.sh/);
@@ -304,7 +309,9 @@ test("rust-hybrid release candidate can opt into OIDC Windows signing without lo
304
309
  // ref-triggered checkout.
305
310
  assert.match(content, /windows-sign:[\s\S]*?ref: \$\{\{ needs\.admission\.outputs\.source_revision \}\}\n\s+fetch-depth: 0\n\s+persist-credentials: false/);
306
311
  assert.match(content, /git rev-parse HEAD.*inputs\.source_revision/);
307
- assert.ok(content.includes("LEGION_SOURCE_REVISION: ${{ env.RIGHT_GIT_SOURCE_REVISION }}"));
312
+ assert.ok(content.includes("LEGION_SOURCE_REVISION: ${{ needs.admission.outputs.source_revision }}"));
313
+ assert.ok(content.includes("RIGHT_GIT_SOURCE_REVISION: ${{ needs.admission.outputs.source_revision }}"));
314
+ assert.doesNotMatch(content, /env\.RIGHT_GIT_SOURCE_REVISION/);
308
315
  assert.doesNotMatch(content, /LEGION_SOURCE_REVISION: \$\{\{ github\.sha \}\}/);
309
316
  assert.doesNotMatch(content, /secrets\.|client-secret|private.key/i);
310
317
  assert.doesNotMatch(content, /run: (?:pnpm|npm|yarn) run undefined\b/);
@@ -343,7 +350,9 @@ test("rust-hybrid release candidate can opt into protected macOS signing & notar
343
350
  assert.match(content, /secrets\.APPLE_API_KEY_BASE64/);
344
351
  assert.match(content, /macos-sign:[\s\S]*?ref: \$\{\{ needs\.admission\.outputs\.source_revision \}\}\n\s+fetch-depth: 0\n\s+persist-credentials: false/);
345
352
  assert.match(content, /git rev-parse HEAD.*inputs\.source_revision/);
346
- assert.ok(content.includes("LEGION_SOURCE_REVISION: ${{ env.RIGHT_GIT_SOURCE_REVISION }}"));
353
+ assert.ok(content.includes("LEGION_SOURCE_REVISION: ${{ needs.admission.outputs.source_revision }}"));
354
+ assert.ok(content.includes("RIGHT_GIT_SOURCE_REVISION: ${{ needs.admission.outputs.source_revision }}"));
355
+ assert.doesNotMatch(content, /env\.RIGHT_GIT_SOURCE_REVISION/);
347
356
  assert.doesNotMatch(content, /LEGION_SOURCE_REVISION: \$\{\{ github\.sha \}\}/);
348
357
  assert.match(content, /security delete-keychain/);
349
358
  assert.doesNotMatch(content, /pull_request_target/);
@@ -1484,10 +1493,11 @@ const SW_BASELINE = {
1484
1493
  "node/publish-npm": "50882207659dfb6e0207fc0d9b33d86b7c10a2d2e3e6c65b2db05d5261982834",
1485
1494
  "node/publish-package-managers": "106b8d28ed76d916afe68808388cd5dc0de0ddd719b566832a6e8280410f9d7f",
1486
1495
  "rust-hybrid/ci": "9652939dae20655f893694e6ef59b521c1c8805817a9048f1347e128ffa5cefb",
1487
- "rust-hybrid/release-candidate": "a0405dd2d6df8cfe2909fe8b371a068838617174e0d591b367b9dc5866400348",
1496
+ // 0.2.44: the 0.2.41 render with the admission job on macos-15 (ownership approval does not run on Linux).
1497
+ "rust-hybrid/release-candidate": "2a8b8acb5844c244e220f996aac22d35cdd7df1dc9a83e88a9ca71cb80c6e208",
1488
1498
  "rust-hybrid/regenerate": "14b7adfb5839df53f53bfe9599ef1358ff51d160a21b9ce1ca5d843a87156b36",
1489
1499
  "rust-hybrid-chain/ci": "413071a268dfa3b72a5b483173551f5e56818ed60f0cd6b15cd5a730584d8a6e",
1490
- "rust-hybrid-chain/release-candidate": "0dc667ce2c399f87b962d31752980b87eb83b3becc9c05ca076ecdf6a0fc7b02",
1500
+ "rust-hybrid-chain/release-candidate": "56faea1858944a9bf92f93370ec4a26d3c3360b2adc17588f6c6a93f1875546e",
1491
1501
  };
1492
1502
 
1493
1503
  // Each lane that builds Swift renders the shared configure and cleanup steps into exactly these jobs.
@@ -42,7 +42,8 @@ jobs:
42
42
  run: exit 1
43
43
  admission:
44
44
  needs: [private-repo-guard]
45
- runs-on: ubuntu-24.04
45
+ # Ownership approval supports only macOS and Windows; Linux fails "unsupported platform: linux".
46
+ runs-on: macos-15
46
47
  permissions:
47
48
  contents: read
48
49
  outputs: