Skip to content

Commit 6d8f6bc

Browse files
DanWahlinCopilot
andcommitted
fix: add GH_TOKEN env var to traffic updater agent step
The gh CLI needs GH_TOKEN set in the agent sandbox to authenticate with the GitHub Traffic API. engine.env is not yet supported by the gh-aw compiler, so the lock file requires a manual addition after each recompile. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 94c60fb commit 6d8f6bc

File tree

2 files changed

+24
-19
lines changed

2 files changed

+24
-19
lines changed

.github/workflows/traffic-updater.lock.yml

Lines changed: 20 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/traffic-updater.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ tools:
99
edit:
1010
github:
1111
toolsets: [repos]
12+
# NOTE: After running `gh aw compile`, manually add the following env var
13+
# to the agent step in the lock file (the step that runs `copilot`):
14+
# GH_TOKEN: ${{ secrets.GH_AW_GITHUB_TOKEN }}
15+
# This is required because engine.env is not yet supported by the compiler.
1216
safe-outputs:
1317
allowed-domains:
1418
- github.com

0 commit comments

Comments
 (0)