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
Copy file name to clipboardExpand all lines: workshop/06a-install-terminal.md
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
6
6
## 🎯 What You'll Do
7
7
8
-
You'll verify the `gh` CLI is authenticated, install the `gh-aw` extension, and confirm it is working in your Codespace terminal.
8
+
You'll verify the `gh` CLI is authenticated, install the `gh-aw` extension, and run one quick diagnostic to confirm your Codespace terminal is ready for agentic workflow setup.
9
9
10
10
## 📋 Before You Start
11
11
@@ -57,6 +57,18 @@ gh aw --version
57
57
58
58
You should see output like `gh-aw version 0.81.6`.
59
59
60
+
## Run a quick diagnostic
61
+
62
+
Now run:
63
+
64
+
```bash
65
+
gh aw doctor
66
+
```
67
+
68
+
This verifies your GitHub CLI authentication using the same setup checks `gh-aw` expects before later authoring and compile steps.
69
+
70
+
Expected result: a success message confirming GitHub CLI authentication. If it fails, use [Side Quest: Install gh-aw Troubleshooting](side-quest-06-01-install-troubleshooting.md), then rerun `gh aw doctor`.
Copy file name to clipboardExpand all lines: workshop/06b-install-local.md
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
6
6
## 🎯 What You'll Do
7
7
8
-
You'll verify the `gh` CLI is authenticated, install the `gh-aw` extension, and confirm it is working in your local terminal.
8
+
You'll verify the `gh` CLI is authenticated, install the `gh-aw` extension, and run one quick diagnostic to confirm your local terminal is ready for agentic workflow setup.
9
9
10
10
## 📋 Before You Start
11
11
@@ -57,6 +57,18 @@ gh aw --version
57
57
58
58
You should see output like `gh-aw version 0.81.6`.
59
59
60
+
## Run a quick diagnostic
61
+
62
+
Now run:
63
+
64
+
```bash
65
+
gh aw doctor
66
+
```
67
+
68
+
This verifies your GitHub CLI authentication using the same setup checks `gh-aw` expects before later authoring and compile steps.
69
+
70
+
Expected result: a success message confirming GitHub CLI authentication. If it fails, use [Side Quest: Install gh-aw Troubleshooting](side-quest-06-01-install-troubleshooting.md), then rerun `gh aw doctor`.
Copy file name to clipboardExpand all lines: workshop/07c-your-first-workflow-copilot.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,9 +16,9 @@ Open your practice repository in the GitHub Copilot app and start a session in *
16
16
Paste this prompt:
17
17
18
18
```text
19
-
Create `.github/workflows/daily-report-status.md` as a GitHub Agentic Workflow.
19
+
Initialize this repository for GitHub Agentic Workflows using https://raw.githubusercontent.com/github/gh-aw/main/install.md
20
20
21
-
Before authoring, run `gh aw init` from the repository root, then commit and push the generated `.github/skills/agentic-workflows/` files.
21
+
Then create a workflow for GitHub Agentic Workflows using https://raw.githubusercontent.com/github/gh-aw/main/create.md
22
22
23
23
The workflow must:
24
24
- Be named "Daily Report Status"
@@ -29,9 +29,7 @@ The workflow must:
29
29
"This issue has the most community support! We'll prioritise it in our next planning session."
30
30
- Create an issue titled "Community Voting Test" and post the same comment if no open issues exist
31
31
32
-
Run `gh aw compile --validate` in the session
33
-
workspace, fix any errors, commit the source and generated lock file (plus the initialized skill files), and open a
34
-
pull request. Show me the diff before merging.
32
+
Run `gh aw compile --validate` in the session workspace, fix any errors, commit the source and generated lock file (plus any initialized skill files), and open a pull request. Show me the diff before merging.
35
33
```
36
34
37
35
The agent runs validation in its isolated session workspace. You do not need a terminal for this path.
Copy file name to clipboardExpand all lines: workshop/07d-confirm-model-access.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,9 +33,19 @@ The workflow uses the organization subscription. You do not need a personal Copi
33
33
34
34
Use this path for a personal repository, or when the owning organization does not provide centralized Copilot billing.
35
35
36
-
1. Complete [Method 2: `COPILOT_GITHUB_TOKEN`](side-quest-06-03b-copilot-github-token.md), or use its [GitHub UI-only path](side-quest-06-03c-copilot-github-token-ui-only.md).
37
-
2. Remove `copilot-requests: write` from `daily-report-status.md`.
38
-
3. Recompile and commit `daily-report-status.lock.yml` as described in the method guide.
36
+
1. Remove `copilot-requests: write` from `daily-report-status.md`.
37
+
2. If you are using a terminal, run:
38
+
39
+
40
+
```bash
41
+
gh aw secrets bootstrap --engine copilot
42
+
```
43
+
44
+
This guided flow checks whether `COPILOT_GITHUB_TOKEN` is needed, prompts for it if missing, and stores it as a repository secret.
45
+
3. If you are staying in the browser, use [Method 2 (UI-only)](side-quest-06-03c-copilot-github-token-ui-only.md).
46
+
4. Recompile and commit `daily-report-status.lock.yml`.
47
+
48
+
If you want the full manual PAT procedure, use [Method 2: `COPILOT_GITHUB_TOKEN`](side-quest-06-03b-copilot-github-token.md).
39
49
40
50
> [!IMPORTANT]
41
51
> When `copilot-requests: write` is present, the workflow ignores `COPILOT_GITHUB_TOKEN` for inference. Remove the permission and recompile when you choose personal billing.
Copy file name to clipboardExpand all lines: workshop/10-choose-your-scenario.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,7 +121,11 @@ Use the **Agentic Workflows** agent in the GitHub Copilot app or Agents tab to c
121
121
Describe your intent in plain language — the agent handles the workflow format, compilation, and pull request for you:
122
122
123
123
```
124
-
Create a daily status workflow that posts a summary of open PRs and issues to an issue comment every day.
124
+
Initialize this repository for GitHub Agentic Workflows using https://raw.githubusercontent.com/github/gh-aw/main/install.md
125
+
126
+
Then create a workflow for GitHub Agentic Workflows using https://raw.githubusercontent.com/github/gh-aw/main/create.md
127
+
128
+
The purpose of the workflow is a daily status report on recent repository activity, delivered as an issue comment. Summarize open pull requests and open issues every day.
125
129
```
126
130
127
131
The agent creates the workflow, compiles it, and opens a pull request. Review the diff and merge it into `main`.
Copy file name to clipboardExpand all lines: workshop/side-quest-06-03-copilot-token.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,13 @@
11
11
12
12
Agentic workflows call the GitHub Copilot API at runtime to run AI reasoning steps. Without a valid credential, every call returns `401 Unauthorized` and the workflow fails immediately. Configuring authentication once, before you run a workflow, ensures your agent can reach Copilot reliably on every future run.
13
13
14
+
If you are using a terminal, prefer the guided `gh-aw` setup flows where possible:
15
+
16
+
-`gh aw secrets bootstrap --engine copilot` after you choose personal billing
17
+
-`gh aw add-wizard ...` when you are installing a curated workflow and want setup prompts inline
18
+
19
+
Use the manual guides below when you need or prefer the step-by-step browser procedure.
Copy file name to clipboardExpand all lines: workshop/side-quest-06-03b-copilot-github-token.md
+17-3Lines changed: 17 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,21 @@ If you want an all-UI path with no terminal commands, use [Method 2 (UI-only)](s
11
11
- You have a GitHub account with an active Copilot subscription.
12
12
- You have read [Side Quest: Configure GitHub Copilot Authentication](side-quest-06-03-copilot-token.md) and chosen Method 2.
13
13
14
-
## ✏️ Sub-exercise A: Generate the token
14
+
## Shortest terminal path
15
+
16
+
If your workflow currently includes `copilot-requests: write`, remove that line first. When it is present, the workflow ignores `COPILOT_GITHUB_TOKEN` for inference.
17
+
18
+
Then run:
19
+
20
+
```bash
21
+
gh aw secrets bootstrap --engine copilot
22
+
```
23
+
24
+
This guided flow checks whether the secret is missing, walks you through creating or pasting a valid fine-grained PAT, and stores it as `COPILOT_GITHUB_TOKEN`.
25
+
26
+
If you prefer to create and store the PAT manually, follow the full procedure below.
27
+
28
+
## ✏️ Sub-exercise A: Generate the token manually
15
29
16
30
1. Go to [github.com/settings/tokens](https://github.com/settings/tokens) and click **Generate new token (fine-grained)**.
17
31
2. Name the token (for example, `gh-aw-copilot`) and set an expiry (90 days is a common default).
@@ -33,7 +47,7 @@ Replace `YYYY-MM-DD` with your token expiry date.
33
47
-[ ] I copied the token value before leaving the page
34
48
-[ ] I noted the token rotation date
35
49
36
-
## ✏️ Sub-exercise B: Store the secret
50
+
## ✏️ Sub-exercise B: Store the secret manually
37
51
38
52
Store the token as a repository secret:
39
53
@@ -56,7 +70,7 @@ You should see `COPILOT_GITHUB_TOKEN` in the output. Once confirmed, you can saf
56
70
57
71
## Select the token in your workflow
58
72
59
-
Remove`copilot-requests: write` from the source workflow. When that permission is present, the workflow ignores `COPILOT_GITHUB_TOKEN` for inference.
73
+
If you have not already done so, remove`copilot-requests: write` from the source workflow. When that permission is present, the workflow ignores `COPILOT_GITHUB_TOKEN` for inference.
0 commit comments