Skip to content

Commit 8e424ae

Browse files
committed
rm unrelated feature
1 parent b092a4d commit 8e424ae

File tree

4 files changed

+6
-56
lines changed

4 files changed

+6
-56
lines changed

cmd/gh-aw/main.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,6 @@ Use "` + constants.CLIExtensionPrefix + ` help all" to show help for all command
494494
mcpGatewayCmd := cli.NewMCPGatewayCommand()
495495
prCmd := cli.NewPRCommand()
496496
campaignCmd := campaign.NewCommand()
497-
tokensCmd := cli.NewTokensCommand()
498497

499498
// Assign commands to groups
500499
// Setup Commands
@@ -503,7 +502,6 @@ Use "` + constants.CLIExtensionPrefix + ` help all" to show help for all command
503502
addCmd.GroupID = "setup"
504503
removeCmd.GroupID = "setup"
505504
updateCmd.GroupID = "setup"
506-
tokensCmd.GroupID = "setup"
507505

508506
// Development Commands
509507
compileCmd.GroupID = "development"
@@ -548,7 +546,6 @@ Use "` + constants.CLIExtensionPrefix + ` help all" to show help for all command
548546
rootCmd.AddCommand(prCmd)
549547
rootCmd.AddCommand(versionCmd)
550548
rootCmd.AddCommand(campaignCmd)
551-
rootCmd.AddCommand(tokensCmd)
552549
}
553550

554551
func main() {

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

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -7,50 +7,6 @@ sidebar:
77

88
GitHub Agentic Workflows authenticate using multiple tokens depending on the operation. This reference explains which token to use, when it's required, and how precedence works across different operations.
99

10-
## Quick start: tokens you actually configure
11-
12-
GitHub Actions always provides `GITHUB_TOKEN` for you automatically.
13-
For GitHub Agentic Workflows, you only need to create a few **optional** secrets in your own repo:
14-
15-
| When you need this… | Secret to create | Notes |
16-
|------------------------------------------------------|----------------------------------------|-------|
17-
| Cross-repo Project Ops / remote GitHub tools | `GH_AW_GITHUB_TOKEN` | PAT or app token with cross-repo access. |
18-
| Copilot workflows (CLI, engine, agent tasks, etc.) | `COPILOT_GITHUB_TOKEN` | Needs Copilot Requests permission and repo access. |
19-
| Assigning agents/bots to issues or pull requests | `GH_AW_AGENT_TOKEN` | Used by `assign-to-agent` and Copilot assignee/reviewer flows. |
20-
| Isolating MCP server permissions (advanced optional) | `GH_AW_GITHUB_MCP_SERVER_TOKEN` | Only if you want MCP to use a different token than other jobs. |
21-
22-
Create these as **repository or organization secrets in *your* repo**, for example with the GitHub CLI:
23-
24-
```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"
28-
```
29-
30-
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.
31-
32-
### Security and scopes (least privilege)
33-
34-
- Use `permissions:` at the workflow or job level so `GITHUB_TOKEN` only has what that workflow needs (for example, read contents and write PRs, but nothing else):
35-
36-
```yaml
37-
permissions:
38-
contents: read
39-
pull-requests: write
40-
```
41-
42-
- When creating each PAT/App token above, grant access **only** to the repos and scopes required for its scenario (cross-repo Project Ops, Copilot, agents, or MCP) and nothing more.
43-
- Only expose powerful secrets to the jobs that need them by scoping them to `env:` at the job or step level, not globally:
44-
45-
```yaml
46-
jobs:
47-
project-ops:
48-
env:
49-
GH_AW_GITHUB_TOKEN: ${{ secrets.GH_AW_GITHUB_TOKEN }}
50-
```
51-
52-
- For very sensitive tokens, prefer GitHub Environments or organization-level secrets with required reviewers so only trusted workflows can use them.
53-
5410
## Token Overview
5511

5612
| Token | Type | Purpose | User Configurable |

go.mod

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ require (
1414
github.com/modelcontextprotocol/go-sdk v1.1.0
1515
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2
1616
github.com/sourcegraph/conc v0.3.0
17-
github.com/spf13/cobra v1.10.2
18-
github.com/stretchr/testify v1.11.1
19-
github.com/xeipuuv/gojsonschema v1.2.0
20-
golang.org/x/crypto v0.36.0
21-
golang.org/x/term v0.38.0
22-
gopkg.in/yaml.v3 v3.0.1
23-
)
17+
github.com/spf13/cobra v1.10.2
18+
github.com/stretchr/testify v1.11.1
19+
github.com/xeipuuv/gojsonschema v1.2.0
20+
golang.org/x/term v0.38.0
21+
gopkg.in/yaml.v3 v3.0.1
22+
)
2423

2524
require (
2625
github.com/atotto/clipboard v0.1.4 // indirect

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,6 @@ github.com/yosida95/uritemplate/v3 v3.0.2/go.mod h1:ILOh0sOhIJR3+L/8afwt/kE++YT0
139139
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
140140
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
141141
go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
142-
golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34=
143-
golang.org/x/crypto v0.36.0/go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc=
144142
golang.org/x/exp v0.0.0-20231006140011-7918f672742d h1:jtJma62tbqLibJ5sFQz8bKtEM8rJBtfilJ2qTU199MI=
145143
golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo=
146144
golang.org/x/oauth2 v0.34.0 h1:hqK/t4AKgbqWkdkcAeI8XLmbK+4m4G5YeQRrmiotGlw=

0 commit comments

Comments
 (0)