Skip to content

Commit 69348b9

Browse files
updated the readme file
1 parent 37e77b6 commit 69348b9

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

.github/workflows/example-workflows.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,3 @@ jobs:
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 }}

README.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff 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`

0 commit comments

Comments
 (0)