openthrottle 0.1.7 → 0.1.9

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.
Files changed (2) hide show
  1. package/dist/init.js +13 -0
  2. package/package.json +1 -1
package/dist/init.js CHANGED
@@ -337,6 +337,9 @@ async function pushSecrets(config) {
337
337
  console.log(' Skipped secret push.');
338
338
  return;
339
339
  }
340
+ // GitHub rejects secret names starting with GITHUB_ (reserved prefix)
341
+ const reservedPrefix = /^GITHUB_/i;
342
+ const skippedKeys = [];
340
343
  let pushed = 0;
341
344
  let failed = 0;
342
345
  for (const [path, keys] of Object.entries(envFiles)) {
@@ -367,6 +370,10 @@ async function pushSecrets(config) {
367
370
  }
368
371
  if (!keys.includes(key))
369
372
  continue;
373
+ if (reservedPrefix.test(key)) {
374
+ skippedKeys.push(key);
375
+ continue;
376
+ }
370
377
  try {
371
378
  execFileSync('gh', ['secret', 'set', key, '--repo', repo], {
372
379
  input: value,
@@ -380,6 +387,12 @@ async function pushSecrets(config) {
380
387
  }
381
388
  }
382
389
  }
390
+ if (skippedKeys.length > 0) {
391
+ console.log(` Skipped ${skippedKeys.length} key(s) with reserved GITHUB_ prefix:`);
392
+ for (const key of skippedKeys) {
393
+ console.log(` ${key} — rename to ${key.replace(/^GITHUB_/i, 'GH_')} in your .env and workflow`);
394
+ }
395
+ }
383
396
  console.log(` Pushed ${pushed} secret(s) to ${repo}${failed > 0 ? ` (${failed} failed)` : ''}`);
384
397
  }
385
398
  // ---------------------------------------------------------------------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openthrottle",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "CLI for Open Throttle — ship prompts to Daytona sandboxes.",
5
5
  "type": "module",
6
6
  "bin": {