File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -6,23 +6,25 @@ The `stackql/setup-stackql` action is a JavaScript action that sets up Terraform
66- Setup AUTH env var in the Github Action
77
88# Auth
9+ [ Learn more] ( https://stackql.io/docs/getting-started/authenticating ) about authentication setup when running stackql
10+
911### Basic Example
10- 1 . Set Auth variable:
12+ 1 . Set Auth variable, for example :
1113```
1214{ "github": { "type": "basic", "credentialsenvvar": "STACKQL_GITHUB_CREDS" } }
1315```
14162 . create the github token as a secret
15173 . In the execution step, pass the secret as environment variable with name "STACKQL_GITHUB_CREDS"
1618
17- Check the "Use GitHub Provider" step in ` .github/workflows/example-workflows.yml `
19+ Check the "Use GitHub Provider" step in ` .github/workflows/example-workflows.yml ` for the working example
1820
1921### json File Auth example
2022
21- 1 . Set Auth variable:
23+ 1 . Set Auth variable, for example :
2224```
2325{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}
2426```
25272 . encode the key json file into base64 string
26283 . in execution step, run ` sudo echo ${{ secrets.<name of the secret> }} | base64 -d > sa-key.json `
2729
28- Check the "Use Google Provider" step in ` .github/workflows/example-workflows.yml `
30+ Check the "Use Google Provider" step in ` .github/workflows/example-workflows.yml ` for the working example
You can’t perform that action at this time.
0 commit comments