Skip to content

Commit 3538d46

Browse files
committed
fix(ci): set DATABASE_URL at job level to override secrets injection
The secrets injection step was setting DATABASE_URL from GitHub Secrets (manicode_user_local) which overrode the test container credentials. Setting DATABASE_URL at the job level ensures it takes precedence.
1 parent 22320ae commit 3538d46

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,13 @@ jobs:
231231
fi
232232
233233
# Billing integration tests (requires PostgreSQL)
234-
# Tests use a hardcoded default DATABASE_URL matching this container config
234+
# DATABASE_URL is set at job level to override any secrets injection
235235
test-billing-integration:
236236
needs: [build-and-check]
237237
name: test-integration-packages/billing
238238
runs-on: ubuntu-latest
239+
env:
240+
DATABASE_URL: postgresql://postgres:postgres@127.0.0.1:5432/testdb
239241
services:
240242
postgres:
241243
image: postgres:16-alpine

0 commit comments

Comments
 (0)