Skip to content

Commit 227b87a

Browse files
committed
fix: set M87_BOOTSTRAP_KEY in CI .env to match API key
docker-compose.yml sets M87_BOOTSTRAP_KEY=${M87_BOOTSTRAP_KEY:-m87-dev-key-change-me} which always populates the env var in the container (even with the default). The Python fallback `os.getenv("M87_BOOTSTRAP_KEY", os.getenv("M87_API_KEY", ...))` never reaches M87_API_KEY because docker-compose already set BOOTSTRAP_KEY. Result: Redis gets seeded with "m87-dev-key-change-me" while proof-test.sh sends "m87-ci-test-key" via X-M87-Key header → "Invalid API key". Fix: explicitly set M87_BOOTSTRAP_KEY=m87-ci-test-key in CI .env so the seeded key matches what proof-test.sh sends. https://claude.ai/code/session_01DAuwxwQQoyHFHbmumedqob
1 parent c21da40 commit 227b87a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
- name: Create .env file
5757
run: |
5858
echo "M87_API_KEY=m87-ci-test-key" > .env
59+
echo "M87_BOOTSTRAP_KEY=m87-ci-test-key" >> .env
5960
echo "M87_ENABLE_TEST_ENDPOINTS=true" >> .env
6061
echo "POSTGRES_PASSWORD=ci-test-password" >> .env
6162

0 commit comments

Comments
 (0)