- Admin PowerShell
- GitHub CLI
gh
- Access to both repos:
OgeonX-Ai/enterprise-ai-gateway
Coding-Autopilot-System/ci-autopilot
cd C:\actions-runner
gh auth login -s repo,workflow,read:org,admin:org
gh auth status
$removeToken = gh api -X POST repos/OgeonX-Ai/enterprise-ai-gateway/actions/runners/remove-token -q .token
.\config.cmd remove --token $removeToken
$regToken = gh api -X POST repos/Coding-Autopilot-System/ci-autopilot/actions/runners/registration-token -q .token
.\config.cmd --unattended --url https://github.com/Coding-Autopilot-System/ci-autopilot --token $regToken --name MyLocalPC --runasservice --replace
$serviceName = Get-Content .\.service
Start-Service -Name $serviceName
Get-Service -Name $serviceName
gh api repos/Coding-Autopilot-System/ci-autopilot/actions/runners -q '.runners[] | {name, status, online}'
- Registration and removal tokens are short-lived. Always fetch fresh tokens.
- Use
-X POST with gh api for runner token endpoints.