File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,8 +101,10 @@ jobs:
101101 env :
102102 GOOGLE_CREDS_ENV : ${{ secrets.GOOGLE_CREDS }}
103103 AUTH : ${{ vars.AUTH }} # # '{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
104+ shell : pwsh
104105 run : | # # use the secret to create json file
105- $secrets = Get-Content $Env:GOOGLE_CREDS_ENV
106- $decoded = [System.Convert]::FromBase64String($secrets)
107- [System.Text.Encoding]::UTF8.GetString($decoded) | Set-Content sa-key.json
108- stackql exec -i ./examples/google-example.iql --auth="${AUTH}"
106+ $GoogleCreds = [System.Environment]::GetEnvironmentVariable("GOOGLE_CREDS_ENV")
107+ $bytes = [System.Text.Encoding]::UTF8.GetBytes($GoogleCreds)
108+ $base64 = [System.Convert]::ToBase64String($bytes)
109+ Write-Output $base64 | Set-Content sa-key.json
110+ stackql exec -i ./examples/google-example.iql --auth="${AUTH}"
You can’t perform that action at this time.
0 commit comments