Skip to content

Commit 37e77b6

Browse files
added base64 for json file encryption
1 parent 018100b commit 37e77b6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/example-workflows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737

3838
- name: use Google Provider
3939
run: | ## use the secret to create json file
40-
sudo echo $GOOGLE_CREDS > sa-key.json
40+
sudo echo ${{ secrets.GOOGLE_CREDS }} | base64 -d > sa-key.json
4141
stackql exec -i ./examples/google-example.iql --auth="${AUTH}"
4242
env:
43-
AUTH: ${{ vars.AUTH }} ## '{ "google": { "type": "service_account", "credentialsfilepath": "creds/sa-key.json" }}'
43+
AUTH: ${{ vars.AUTH }} ## '{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
4444
GOOGLE_CREDS: ${{ secrets.GOOGLE_CREDS }}

examples/google-example.iql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
REGISTRY PULL google v23.01.00116;
2-
SHOW PROVIDERS;
3-
select name
4-
from google.cloudasset.assets;
2+
SELECT name, status
3+
FROM google.compute.instances
4+
WHERE project = 'stackql-demo' AND zone = 'australia-southeast1-a';

0 commit comments

Comments
 (0)