Skip to content

Commit e21e3e5

Browse files
lpcoxCopilot
andcommitted
perf: optimize security-guard token usage
- Restrict GitHub toolsets from [default] (52 tools) to [pull_requests, repos] (only tools actually used) - Add pre-compute step to fetch PR diff before agent starts, reducing tool calls needed for initial PR analysis - Add max-turns: 15 to prevent runaway token consumption - Add explicit network: allowed: [github] to restrict egress - Update prompt to reference pre-fetched diff data Closes #1647 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent b097547 commit e21e3e5

File tree

3 files changed

+496
-379
lines changed

3 files changed

+496
-379
lines changed

.github/aw/actions-lock.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@
5050
"version": "v0.65.3",
5151
"sha": "6b4da262b8f7e0e253d1ae84f400a843b918a4ab"
5252
},
53+
"github/gh-aw-actions/setup@v0.65.5": {
54+
"repo": "github/gh-aw-actions/setup",
55+
"version": "v0.65.5",
56+
"sha": "15b2fa31e9a1b771c9773c162273924d8f5ea516"
57+
},
5358
"github/gh-aw/actions/setup@v0.42.0": {
5459
"repo": "github/gh-aw/actions/setup",
5560
"version": "v0.42.0",

0 commit comments

Comments
 (0)