Skip to content

Commit e91c967

Browse files
mnkieferCopilot
andauthored
Update docs/src/content/docs/reference/tokens.md
Co-authored-by: Copilot <[email protected]>
1 parent fd46058 commit e91c967

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/content/docs/reference/tokens.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ For GitHub Agentic Workflows, you only need to create a few **optional** secrets
2222
Create these as **repository or organization secrets in *your* repo**, for example with the GitHub CLI:
2323

2424
```bash
25-
gh secret set GH_AW_GITHUB_TOKEN -a actions --body "YOUR_PAT"
26-
gh secret set COPILOT_GITHUB_TOKEN -a actions --body "YOUR_COPILOT_PAT"
27-
gh secret set GH_AW_AGENT_TOKEN -a actions --body "YOUR_AGENT_PAT"
25+
echo "YOUR_PAT" | gh secret set GH_AW_GITHUB_TOKEN -a actions
26+
echo "YOUR_COPILOT_PAT" | gh secret set COPILOT_GITHUB_TOKEN -a actions
27+
echo "YOUR_AGENT_PAT" | gh secret set GH_AW_AGENT_TOKEN -a actions
2828
```
2929

3030
After these are set, gh-aw will automatically pick the right token for each operation; you should not need per-workflow PATs in most cases.

0 commit comments

Comments
 (0)