@theholocron/cli 3.12.3 → 3.13.1

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/dist/cli.mjs CHANGED
@@ -3443,8 +3443,8 @@ async function runSetup(input) {
3443
3443
  if (steps.some((s) => s.reason === "permissions")) {
3444
3444
  print("");
3445
3445
  print(style.warn("Some steps failed with 403 (insufficient token permissions)."));
3446
- print(style.hint(" These operations require a temporary fine-grained PAT with the"));
3447
- print(style.hint(" following repository permissions:"));
3446
+ print(style.hint(" Repo-scoped operations (rulesets, settings, workflows) require a"));
3447
+ print(style.hint(" fine-grained PAT passed via --token or HOLOCRON_ADMIN_TOKEN:"));
3448
3448
  print("");
3449
3449
  print(style.hint(" · Administration — read and write"));
3450
3450
  print(style.hint(" · Code scanning alerts — read and write"));
@@ -3453,9 +3453,17 @@ async function runSetup(input) {
3453
3453
  print(style.hint(" · Workflows — read and write"));
3454
3454
  print(style.hint(" · Metadata — read (added automatically)"));
3455
3455
  print("");
3456
- print(style.hint(" Create one at: https://github.com/settings/personal-access-tokens/new"));
3457
- print(style.hint(" Then re-run: holocron setup --token <your-temp-pat>"));
3458
- print(style.hint(" You can revoke it immediately after setup completes."));
3456
+ print(style.hint(" Org-scoped operations (teams, custom properties) require"));
3457
+ print(style.hint(" HOLOCRON_ORG_TOKEN — a fine-grained PAT with resource owner set to the org:"));
3458
+ print("");
3459
+ print(style.hint(" · Administration — read and write (repository permission)"));
3460
+ print(style.hint(" · Members — read (organization permission)"));
3461
+ print(style.hint(" · Organization custom properties — read and write (organization permission)"));
3462
+ print(style.hint(" · Metadata — read (repository permission, auto-included)"));
3463
+ print("");
3464
+ print(style.hint(" Create tokens at: https://github.com/settings/personal-access-tokens/new"));
3465
+ print(style.hint(" Then re-run: holocron setup --token <your-admin-pat>"));
3466
+ print(style.hint(" Store org token: HOLOCRON_ORG_TOKEN env var or keyring key github.org"));
3459
3467
  }
3460
3468
  return {
3461
3469
  steps,