Skip to content

Commit 25d3152

Browse files
added github example
1 parent f71cede commit 25d3152

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/stackql-exec.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,21 @@ jobs:
3030
- name: Prep Google Creds (bash)
3131
if: ${{ matrix.os != 'windows-latest' }}
3232
shell: bash
33-
run: | ## use the secret to create json file
33+
run: | ## use the base64 encoded secret to create json file
3434
sudo echo ${{ secrets.GOOGLE_CREDS }} | base64 -d > sa-key.json
3535
3636
- name: exec google example
3737
uses: ./
3838
with:
3939
auth_obj_path: './stackql_scripts/auth.json'
40-
query_file_path: './stackql_scripts/google-example.iql'
40+
query_file_path: './stackql_scripts/google-example.iql'
41+
42+
- name: exec github example
43+
uses: ./
44+
with:
45+
auth_str: '{ "github": { "type": "basic", "credentialsenvvar": "STACKQL_GITHUB_CREDS" } }'
46+
query: "REGISTRY PULL github v23.01.00104;
47+
SHOW PROVIDERS;
48+
select total_private_repos
49+
from github.orgs.orgs
50+
where org = 'stackql';"

0 commit comments

Comments
 (0)