Skip to content

Commit a128b52

Browse files
author
Kim Harjamaki
committed
Require OPENAI_API_KEY for operator
1 parent 134926b commit a128b52

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/autopilot-operator.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
ORG: ${{ vars.ORG }}
1818
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
2021
steps:
2122
- name: Ensure Codex on PATH
2223
shell: pwsh
@@ -43,6 +44,14 @@ jobs:
4344
exit 1
4445
}
4546
47+
- name: Validate Codex auth
48+
shell: pwsh
49+
run: |
50+
if (-not $env:OPENAI_API_KEY) {
51+
Write-Host "OPENAI_API_KEY is not set."
52+
exit 1
53+
}
54+
4655
- name: Run operator
4756
shell: pwsh
4857
run: .\scripts\autopilot-operator.ps1

0 commit comments

Comments
 (0)