File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,19 +100,15 @@ jobs:
100100 - name : Prep Google Creds
101101 env :
102102 GOOGLE_CREDS_ENV : ${{ secrets.GOOGLE_CREDS }}
103- AUTH : ${{ vars.AUTH }} # # '{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
104103 shell : pwsh
105104 run : | # # use the secret to create json file
106105 $GoogleCreds = [System.Environment]::GetEnvironmentVariable("GOOGLE_CREDS_ENV")
107106 $GoogleCredsDecoded = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($GoogleCreds))
108107 Write-Output $GoogleCredsDecoded | Set-Content sa-key.json
109- ls sa-key.json
110- cat sa-key.json
111108
112109 - name : Use Google Provider
113110 env :
114- GOOGLE_CREDS_ENV : ${{ secrets.GOOGLE_CREDS }}
115111 AUTH : ${{ vars.AUTH }} # # '{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
116112 shell : pwsh
117113 run : | # # use the secret to create json file
118- stackql exec -i ./examples/google-example.iql --auth='{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
114+ stackql exec -i ./examples/google-example.iql --auth="${AUTH}"
You can’t perform that action at this time.
0 commit comments