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
- ✅ Creates `.github/aw/github-agentic-workflows.md` with comprehensive gh-aw documentation
91
91
- ✅ Creates `.github/agents/*.agent.md` files with specialized AI assistants for workflow creation and debugging
92
92
- ✅ Updates copilot setup steps to install the gh aw extension and setup the Agentic Workflows MCP server
93
+
- ✅ Validates which secrets are configured and shows commands to set up missing ones
93
94
- ✅ Prepares your repository structure for agentic workflows
94
95
95
96
**Expected output:**
@@ -99,13 +100,26 @@ gh aw init --mcp
99
100
✓ Created .github/aw/github-agentic-workflows.md
100
101
✓ Created .github/agents/create-agentic-workflow.agent.md
101
102
✓ Created .github/agents/debug-agentic-workflow.agent.md
103
+
104
+
ℹ Checking recommended gh-aw token secrets in <your-repo>...
105
+
ℹ Checking tokens for engine: copilot
106
+
✗ Required gh-aw token secrets are missing:
107
+
108
+
ℹ Secret: COPILOT_GITHUB_TOKEN
109
+
ℹ When needed: Copilot workflows (CLI, engine, agent tasks, etc.)
110
+
ℹ Recommended scopes: PAT with Copilot Requests permission and repo access
111
+
⚡ gh aw secret set COPILOT_GITHUB_TOKEN --owner <owner> --repo <repo>
112
+
113
+
✓ Repository initialized for agentic workflows!
102
114
```
103
115
104
-
**✨ Checkpoint:** Verify that `.github/aw/` and `.github/agents/` directories were created with the files listed above.
116
+
**✨ Checkpoint:** Verify that `.github/aw/` and `.github/agents/` directories were created with the files listed above. If you see missing secrets listed, continue to Step 3 to configure them.
105
117
106
-
## Step 3: Configure AI Engine (GitHub Copilot)
118
+
## Step 3: Configure Missing Secrets
107
119
108
-
Agentic workflows use AI agents to execute your instructions. The default engine is **GitHub Copilot CLI**.
120
+
If the `gh aw init` command showed missing secrets, you'll need to add them to your repository.
121
+
122
+
### For GitHub Copilot Engine (COPILOT_GITHUB_TOKEN)
109
123
110
124
### Prerequisites
111
125
@@ -141,7 +155,14 @@ Agentic workflows use AI agents to execute your instructions. The default engine
141
155
142
156
**⚠️ Security Warning:** Never paste your token in this chat or commit it to your repository.
143
157
144
-
Add the token to your repository using the GitHub.com user interface:
158
+
Use the new `gh aw secret set` command to add the token securely:
159
+
160
+
```bash
161
+
# You'll be prompted to enter the token value via stdin
162
+
gh aw secret set COPILOT_GITHUB_TOKEN --owner <your-org> --repo <your-repo>
163
+
```
164
+
165
+
Or add it via the GitHub.com interface:
145
166
146
167
1. Navigate to your repository on GitHub.com
147
168
2. Click **Settings** (in the repository menu)
@@ -153,7 +174,13 @@ Add the token to your repository using the GitHub.com user interface:
153
174
154
175
**Expected result:** You should see `COPILOT_GITHUB_TOKEN` listed in your repository secrets.
155
176
156
-
**✨ Checkpoint:** Verify the secret was added by checking the Actions secrets page in your repository settings.
177
+
**✨ Checkpoint:** Verify the secret was added by running:
178
+
179
+
```bash
180
+
gh aw tokens bootstrap --engine copilot
181
+
```
182
+
183
+
This should now show that all required secrets are present.
cmd.Flags().Bool("mcp", false, "Configure GitHub Copilot Agent MCP server integration")
86
94
cmd.Flags().Bool("campaign", false, "Install the Campaign Designer agent for gh-aw campaigns in this repository")
95
+
cmd.Flags().Bool("tokens", false, "Validate required secrets for agentic workflows")
96
+
cmd.Flags().String("engine", "", "AI engine to check tokens for (copilot, claude, codex) - requires --tokens flag")
87
97
cmd.Flags().String("codespaces", "", "Create devcontainer.json for GitHub Codespaces with agentic workflows support. Specify comma-separated repository names in the same organization (e.g., repo1,repo2), or use without value for current repo only")
88
98
// NoOptDefVal allows using --codespaces without a value (returns empty string when no value provided)
0 commit comments