File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,11 +98,11 @@ jobs:
9898 STACKQL_GITHUB_CREDS : ${{ secrets.STACKQL_GITHUB_CREDS }}
9999
100100 - name : Use Google Provider
101+ env :
102+ GOOGLE_CREDS_ENV : ${{ secrets.GOOGLE_CREDS }}
103+ AUTH : ${{ vars.AUTH }} # # '{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
101104 run : | # # use the secret to create json file
102- # sudo echo ${{ secrets.GOOGLE_CREDS }} | base64 -d > sa-key.json
103- $secrets = ${{ secrets.GOOGLE_CREDS }}
105+ $secrets = (Get-Content env:GOOGLE_CREDS_ENV)
104106 $decoded = [System.Convert]::FromBase64String($secrets)
105107 [System.Text.Encoding]::UTF8.GetString($decoded) | Set-Content sa-key.json
106108 stackql exec -i ./examples/google-example.iql --auth="${AUTH}"
107- env :
108- AUTH : ${{ vars.AUTH }} # # '{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
You can’t perform that action at this time.
0 commit comments