Skip to content

Commit 4852b79

Browse files
committed
Persist GH_TOKEN to GITHUB_ENV for coding agent terminal sessions
The per-step env var only applies to that step. Writing to GITHUB_ENV makes it available to all subsequent commands the agent runs.
1 parent 39c37fb commit 4852b79

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/copilot-setup-steps.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ jobs:
3535
- name: Download dependencies
3636
run: mvn dependency:go-offline -B
3737

38-
- name: Verify gh CLI is authenticated
39-
run: gh auth status
38+
- name: Configure gh CLI authentication
39+
run: |
40+
echo "GH_TOKEN=${{ github.token }}" >> "$GITHUB_ENV"
41+
gh auth status
4042
env:
4143
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)