File tree Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 4141 stackql exec -i ./examples/google-example.iql --auth="${AUTH}"
4242 env :
4343 AUTH : ${{ vars.AUTH }} # # '{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
44- GOOGLE_CREDS : ${{ secrets.GOOGLE_CREDS }}
Original file line number Diff line number Diff line change @@ -5,12 +5,24 @@ The `stackql/setup-stackql` action is a JavaScript action that sets up Terraform
55- Downloading a latest Stackql CLI and adding it to the ` PATH ` .
66- Setup AUTH env var in the Github Action
77
8- ## Auth object string
9- Example
8+ # Auth
9+ ### Basic Example
10+ 1 . Set Auth variable:
1011```
11- {
12- "google": { "credentialsfilepath": "creds/stackql-demo.json", "type": "service_account" },
13- "okta": { "credentialsenvvar": "OKTA_SECRET_KEY", "type": "api_key", credentials: '<your credentials>' }
14- }
12+ { "github": { "type": "basic", "credentialsenvvar": "STACKQL_GITHUB_CREDS" } }
1513```
14+ 2 . create the github token as a secret
15+ 3 . In the execution step, pass the secret as environment variable with name "STACKQL_GITHUB_CREDS"
1616
17+ Check the "Use GitHub Provider" step in ` .github/workflows/example-workflows.yml `
18+
19+ ### json File Auth example
20+
21+ 1 . Set Auth variable:
22+ ```
23+ { "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}
24+ ```
25+ 2 . encode the key json file into base64 string
26+ 3 . in execution step, run ` sudo echo ${{ secrets.<name of the secret> }} | base64 -d > sa-key.json `
27+
28+ Check the "Use Google Provider" step in ` .github/workflows/example-workflows.yml `
You can’t perform that action at this time.
0 commit comments