Skip to content

Commit a3fa9d5

Browse files
author
Immutablemike
committed
Add Copilot CLI authentication test workflow
1 parent 3b5d311 commit a3fa9d5

File tree

16 files changed

+36
-1676
lines changed

16 files changed

+36
-1676
lines changed

.github/workflows/copilot_test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Copilot CLI Test
2+
on:
3+
push:
4+
paths: ["test_copilot_trigger.txt"]
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: write
9+
actions: read
10+
11+
jobs:
12+
test_copilot:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Setup Node.js v22
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '22'
21+
22+
- name: Test GitHub Copilot CLI Authentication
23+
env:
24+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
25+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
26+
run: |
27+
# Install the NEW standalone Copilot CLI
28+
npm install -g @github/copilot
29+
30+
echo "Testing Copilot CLI authentication..."
31+
echo "GH_TOKEN length: ${#GH_TOKEN}"
32+
echo "GITHUB_TOKEN length: ${#GITHUB_TOKEN}"
33+
34+
# Test authentication with simple prompt
35+
copilot -p "Say 'Hello World' and confirm you are GitHub Copilot CLI working in GitHub Actions" --allow-all-tools

ToySoldiers_complete/README.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

ToySoldiers_complete/backend/main.py

Lines changed: 0 additions & 59 deletions
This file was deleted.

ToySoldiers_complete/backend/models.py

Lines changed: 0 additions & 30 deletions
This file was deleted.

ToySoldiers_complete/backend/requirements.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

ToySoldiers_complete/docker-compose.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

ToySoldiers_complete/frontend/package.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

ToySoldiers_complete/frontend/src/App.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

ToySoldiers_complete/frontend/src/components/Dashboard.js

Lines changed: 0 additions & 43 deletions
This file was deleted.

ToySoldiers_complete/frontend/src/components/HomePage.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)