You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[plan] Add fork detection and warning to gh aw initΒ #18518
When users run gh aw init inside a forked repository, they receive the same instructions as a fresh install. There is no indication that they need to configure their own copies of all secrets (API keys, tokens), and no warning about features that are restricted in fork contexts.
Objective
Detect when gh aw init (and optionally gh aw compile) is run inside a forked repository and emit a clear warning listing which secrets need to be configured and which features have restrictions.
Approach
In pkg/cli/init_command.go (or equivalent), after determining the current repo context, add a call like gh repo view --json isFork to detect fork status.
If the repo is a fork, print a console.FormatWarningMessage(...) block that:
States the repo is a fork
Lists secrets that must be configured: ANTHROPIC_API_KEY / OPENAI_API_KEY, GH_AW_GITHUB_TOKEN, GH_AW_COPILOT_TOKEN, GH_AW_GITHUB_MCP_SERVER_TOKEN
Notes which features are limited (e.g., workflow_run cross-fork triggers are blocked by design)
Optionally apply the same detection in pkg/cli/compile_command.go with a lighter warning.
Activity
Add GitHub Actions workflow to run evaluate-pr-tests via Copilot CLI (#β¦
Add GitHub Actions workflow to run evaluate-pr-tests via Copilot CLI (dβ¦
Add GitHub Actions workflow to run evaluate-pr-tests via Copilot CLI (dβ¦