File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -139,9 +139,12 @@ jobs:
139139 - name : Run backend tests with coverage
140140 env :
141141 BACKEND_BASE_URL : https://127.0.0.1:443
142+ # Provide an explicit Mongo URI for tests using the CI secrets and modern auth mechanism
143+ MONGODB_URL : mongodb://${{ secrets.MONGO_ROOT_USER }}:${{ secrets.MONGO_ROOT_PASSWORD }}@127.0.0.1:27017/?authSource=admin&authMechanism=SCRAM-SHA-256
142144 run : |
143145 cd backend
144146 echo "Using BACKEND_BASE_URL=$BACKEND_BASE_URL"
147+ # Do not echo the full MONGODB_URL to avoid leaking secrets
145148 python -m pytest tests/integration tests/unit -v --cov=app --cov-branch --cov-report=xml --cov-report=term --cov-report=term-missing
146149
147150 - name : Upload coverage to Codecov
You can’t perform that action at this time.
0 commit comments