Skip to content

Commit 522454d

Browse files
committed
ci(workflows): use api key auth in bay e2e
Disable anonymous access for Bay in CI and nightly browser E2E runs by configuring an API key and exporting E2E_API_KEY for the test steps.
1 parent f11ade4 commit 522454d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ jobs:
166166
port: 8001
167167
168168
security:
169-
allow_anonymous: true
169+
api_key: "e2e-test-api-key"
170+
allow_anonymous: false
170171
171172
driver:
172173
type: docker
@@ -222,6 +223,7 @@ jobs:
222223
working-directory: pkgs/bay
223224
env:
224225
E2E_BAY_PORT: "8001"
226+
E2E_API_KEY: "e2e-test-api-key"
225227
run: |
226228
uv run pytest \
227229
tests/integration/core/test_browser_skill_e2e.py::test_browser_exec_batch_failure_keeps_response_history_trace_consistent \

.github/workflows/nightly-browser-e2e.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ jobs:
4646
port: 8001
4747
4848
security:
49-
allow_anonymous: true
49+
api_key: "e2e-test-api-key"
50+
allow_anonymous: false
5051
5152
driver:
5253
type: docker
@@ -113,6 +114,7 @@ jobs:
113114
working-directory: pkgs/bay
114115
env:
115116
E2E_BAY_PORT: "8001"
117+
E2E_API_KEY: "e2e-test-api-key"
116118
run: uv run pytest tests/integration -v --tb=short
117119

118120
- name: Dump Bay logs on failure

0 commit comments

Comments
 (0)