Skip to content

Commit b380ac8

Browse files
committed
Temporary smoke test for Copilot CLI GITHUB_TOKEN auth
1 parent 21df2e0 commit b380ac8

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Copilot CLI token smoke test
2+
3+
on:
4+
push:
5+
branches:
6+
- test/copilot-token-smoke
7+
8+
permissions: {}
9+
10+
jobs:
11+
smoke:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
copilot-requests: write
16+
steps:
17+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
18+
with:
19+
persist-credentials: false
20+
21+
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
22+
with:
23+
node-version: 24
24+
package-manager-cache: false
25+
26+
- name: Install Copilot CLI
27+
run: |
28+
npm ci --prefix .github/scripts/pull-request-dashboard
29+
echo "$GITHUB_WORKSPACE/.github/scripts/pull-request-dashboard/node_modules/.bin" >> "$GITHUB_PATH"
30+
31+
- name: Run Copilot with GITHUB_TOKEN
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
run: |
35+
set -euo pipefail
36+
copilot -p 'Reply with exactly: OK' --model gpt-5.4-mini --silent

0 commit comments

Comments
 (0)