1
0
mirror of synced 2026-01-04 00:04:25 -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

38 lines
946 B
Markdown

# 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.
```bash
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:
```bash
VERSION=dev ci_credentials destination-snowflake
```
To make sure it get's all changes every time, you can run this:
```bash
pip install --quiet -e ./tools/ci_* && VERSION=dev ci_credentials destination-snowflake
```