@@ -29,17 +29,17 @@ jobs:
2929
3030 - name : Use GitHub Provider
3131 run : |
32- stackql exec -i ./examples/github-example.iql --auth="${AUTH}"
32+ stackql exec -i ./examples/github-example.iql --auth='{ "github": { "type": "basic", "credentialsenvvar": "STACKQL_GITHUB_CREDS" } }'
3333 env :
34- AUTH : ${{ vars.AUTH }} # #'{ "github": { "type": "basic", "credentialsenvvar": "STACKQL_GITHUB_CREDS" } }'
3534 STACKQL_GITHUB_CREDS : ${{ secrets.STACKQL_GITHUB_CREDS }}
3635
37- - name : Use Google Provider
36+ - name : Prep Google Creds (bash)
3837 run : | # # use the secret to create json file
3938 sudo echo ${{ secrets.GOOGLE_CREDS }} | base64 -d > sa-key.json
40- stackql exec -i ./examples/google-example.iql --auth="${AUTH}"
41- env :
42- AUTH : ${{ vars.AUTH }} # # '{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
39+
40+ - name : Use Google Provider
41+ run : |
42+ stackql exec -i ./examples/google-example.iql --auth='{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
4343
4444 # #### uncomment the step to see error handling
4545 # - name: Handle error
@@ -63,17 +63,17 @@ jobs:
6363
6464 - name : Use GitHub Provider
6565 run : |
66- stackql exec -i ./examples/github-example.iql --auth="${AUTH}"
66+ stackql exec -i ./examples/github-example.iql --auth='{ "github": { "type": "basic", "credentialsenvvar": "STACKQL_GITHUB_CREDS" } }'
6767 env :
68- AUTH : ${{ vars.AUTH }} # #'{ "github": { "type": "basic", "credentialsenvvar": "STACKQL_GITHUB_CREDS" } }'
6968 STACKQL_GITHUB_CREDS : ${{ secrets.STACKQL_GITHUB_CREDS }}
7069
71- - name : Use Google Provider
70+ - name : Prep Google Creds (bash)
7271 run : | # # use the secret to create json file
7372 sudo echo ${{ secrets.GOOGLE_CREDS }} | base64 -d > sa-key.json
74- stackql exec -i ./examples/google-example.iql --auth="${AUTH}"
75- env :
76- AUTH : ${{ vars.AUTH }} # # '{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
73+
74+ - name : Use Google Provider
75+ run : |
76+ stackql exec -i ./examples/google-example.iql --auth='{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
7777
7878 stackql-tests-windows :
7979 name : ' Stackql Tests (Windows)'
@@ -92,23 +92,19 @@ jobs:
9292
9393 - name : Use GitHub Provider
9494 run : |
95- stackql exec -i ./examples/github-example.iql --auth="${AUTH}"
95+ stackql exec -i ./examples/github-example.iql --auth='{ "github": { "type": "basic", "credentialsenvvar": "STACKQL_GITHUB_CREDS" } }'
9696 env :
97- AUTH : ${{ vars.AUTH }} # #'{ "github": { "type": "basic", "credentialsenvvar": "STACKQL_GITHUB_CREDS" } }'
9897 STACKQL_GITHUB_CREDS : ${{ secrets.STACKQL_GITHUB_CREDS }}
9998
100- - name : Prep Google Creds
101- env :
102- GOOGLE_CREDS_ENV : ${{ secrets.GOOGLE_CREDS }}
103- shell : pwsh
99+ - name : Prep Google Creds (Windows)
104100 run : | # # use the secret to create json file
105101 $GoogleCreds = [System.Environment]::GetEnvironmentVariable("GOOGLE_CREDS_ENV")
106102 $GoogleCredsDecoded = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($GoogleCreds))
107103 Write-Output $GoogleCredsDecoded | Set-Content sa-key.json
104+ shell : pwsh
105+ env :
106+ GOOGLE_CREDS_ENV : ${{ secrets.GOOGLE_CREDS }}
108107
109108 - name : Use Google Provider
110- env :
111- AUTH : ${{ vars.AUTH }} # # '{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
112- shell : pwsh
113- run : | # # use the secret to create json file
109+ run : |
114110 stackql exec -i ./examples/google-example.iql --auth='{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
0 commit comments