1
0
mirror of synced 2026-01-01 09:02:59 -05:00
Files
airbyte/tools/ci_credentials/README.md
Brian Leonard 9b525b5959 Mask certain keys from GitHub output (#13242)
* Mask certain keys from GitHub output

* add more mask keys

* Read the cwd

* also handle json strings as values

* Test value

* Log at beginning of line

* Testing logs

* Use real mask values

* Handle multiple lines
2022-05-31 15:25:13 -07:00

946 B

CI Credentials

Connects to GSM to download connection details.

Development

Set up the world the same way Google Actions does it in test-command.yml.

source venv/bin/activate
pip install --quiet tox==3.24.4
tox -r -c ./tools/tox_ci.ini
pip install --quiet -e ./tools/ci_*

Download a Service account json key that has access to Google Secrets Manager.

export GCP_GSM_CREDENTIALS=`cat ~/Downloads/key.json`

After making a change, you have to reinstall it to run the bash command: pip install --quiet -e ./tools/ci_*

Run it

The VERSION=dev will make it so it knows to use your local current working directory and not the Github Action one.

Pass in a connector name. For example:

VERSION=dev ci_credentials destination-snowflake

To make sure it get's all changes every time, you can run this:

pip install --quiet -e ./tools/ci_* && VERSION=dev ci_credentials destination-snowflake