mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-15 02:38:42 +00:00
Fix Credentials sent via env (#9071)
* Fix Credentials sent via env * add new env var * fix lint * Add Comment
This commit is contained in:
parent
42fe8617f6
commit
2b2eadf611
1
.github/workflows/py-cli-e2e-tests.yml
vendored
1
.github/workflows/py-cli-e2e-tests.yml
vendored
@ -67,6 +67,7 @@ jobs:
|
||||
env:
|
||||
E2E_TEST: ${{ matrix.e2e-test }}
|
||||
E2E_BQ_PROJECT_ID: ${{ secrets.E2E_BQ_PROJECT_ID }}
|
||||
E2E_BQ_PRIVATE_KEY: ${{ secrets.E2E_BQ_PRIVATE_KEY }}
|
||||
run: |
|
||||
source env/bin/activate
|
||||
python -m pytest -c ingestion/setup.cfg ingestion/tests/cli_e2e/test_cli_$E2E_TEST.py
|
||||
|
@ -77,6 +77,8 @@ def build_google_credentials_dict(gcs_values: GCSValues) -> Dict[str, str]:
|
||||
:return: Dictionary with credentials
|
||||
"""
|
||||
private_key_str = gcs_values.privateKey.get_secret_value()
|
||||
# adding the replace string here to escape line break if passed from env
|
||||
private_key_str = private_key_str.replace("\\n", "\n")
|
||||
validate_private_key(private_key_str)
|
||||
|
||||
return {
|
||||
|
@ -11,7 +11,7 @@ source:
|
||||
type: service_account
|
||||
projectId: $E2E_BQ_PROJECT_ID
|
||||
privateKeyId: $CYPRESS_BQ_PRIVATE_KEY_ID
|
||||
privateKey: $CYPRESS_BQ_PRIVATE_KEY
|
||||
privateKey: $E2E_BQ_PRIVATE_KEY
|
||||
clientEmail: $CYPRESS_BQ_CLIENT_EMAIL
|
||||
clientId: $CYPRESS_BQ_CLIENT_ID
|
||||
sourceConfig:
|
||||
|
Loading…
x
Reference in New Issue
Block a user