Skip to content

[product-manager-impersonator] Make quick setup token prompt work in piped install #577

Description

@github-actions

Feature Idea

Summary: Update scripts/quick-setup.sh so users can still paste COPILOT_GITHUB_TOKEN when running the documented curl ... | bash setup flow.

Why a Customer Would Want This

The default onboarding path is a piped command, but token entry currently requires terminal stdin. First-time adopters can hit a hard failure unless they already know to pre-set COPILOT_GITHUB_TOKEN or use --skip-secret, which adds friction at exactly the moment setup should be easiest.

Rough Implementation Sketch

  • Add a small token-input helper in scripts/quick-setup.sh that reads from /dev/tty when stdin is non-interactive but a terminal is available.
  • Keep existing behavior unchanged for current successful paths (env var set, --skip-secret, and dry-run).
  • Update quick-start docs to note that piped execution supports interactive token prompt fallback.
  • Add/adjust a lightweight script test path for non-TTY stdin behavior if existing shell tests cover this script.

Why It Won't Be That Hard

This is a tightly scoped shell-script change in one code path (token acquisition) with no workflow schema/compiler impact and no behavior changes to existing successful setup flows.

Evidence

  • Piped install is the documented default quick-start path: docs/index.md lines 62-67 and README.md lines 32-35.
  • Docs say this flow sets COPILOT_GITHUB_TOKEN: docs/index.md lines 69-74.
  • Current code only prompts for token when stdin is a TTY ([ -t 0 ]), otherwise exits with an error: scripts/quick-setup.sh lines 225-245.
  • No open duplicate found for this exact gap via issue searches:
    • repo:elastic/ai-github-actions is:issue is:open "stdin is not a terminal" quick-setup
    • repo:elastic/ai-github-actions is:issue is:open quick-setup token prompt
    • repo:elastic/ai-github-actions is:issue is:open quick-setup --skip-secret COPILOT_GITHUB_TOKEN
  • Prior PM issues tracked in /tmp/previous-findings.json cover other quick-setup ideas (--ref, --audit, remote auto-detect, presets/list) but not piped token prompting.

What is this? | From workflow: Trigger Product Manager Impersonator

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions