You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It can be passed with `auth_str` as a string, or stored in a file and pass filename to `auth-obj-path`
14
-
- For "basic" auth, you need to set a environment variable with same name as the value of `credentialsenvvar` in the auth string for the Github Action step. You can use [Github Secrets](https://docs.github.com/en/actions/reference/encrypted-secrets) to store the value of the environment variable, and use env to pass it to the action. For example:
- For "service_account" auth, you need to store the credentials into a file; You can follow the example of `Prep Google Creds (bash)` step in the example
6
+
## Provider Authentication
7
+
Authentication to StackQL providers is done via environment variables source from GitHub Actions Secrets. To learn more about authentication, see the setup instructions for your provider or providers at the [StackQL Provider Registry Docs](https://stackql.io/registry).
-`auth_obj_path` - (optional) the path of json file that stores stackql AUTH string
81
-
-`auth_str` - (optional) stackql AUTH string, need either auth_str or auth_obj_path
82
-
-`query` - (optional) stackql query to execute
83
-
-`query_file_path` - (optional) stackql query file to execute, need either query or query_file_path
84
-
-`query_output` - (optional) output format of the stackql exec result, accept "table", "csv", "json", default to "json"
55
+
-`query` - stackql query to execute **(need to supply either `query` or `query_file_path`)**
56
+
-`query_file_path` - stackql query file to execute **(need to supply either `query` or `query_file_path`)**
57
+
-`vars` - (optional) comma delimited list of variables to pass to the stackql query preprocessor (jsonnet), accepts `var1=val1 var2=val2`, can be used to source environment variables into stackql queries
58
+
-`query_output` - (optional) output format of the stackql exec result, accepts `table`, `csv`, `json`, defaults to `json`
59
+
-`auth_obj_path` - (optional) the path of json file that stores stackql AUTH string **(only required when using non-standard environment variable names)**
60
+
-`auth_str` - (optional) stackql AUTH string **(only required when using non-standard environment variable names)**
85
61
86
62
87
63
## Outputs
@@ -90,3 +66,11 @@ to `true`, `stdout` and `stderr` are set to `exec-result` and `exec-error`
90
66
91
67
-`exec-result` - The STDOUT stream of the call to the `stackql` binary.
92
68
-`exec-error` - The STDERR stream of the call to the `stackql` binary.
69
+
70
+
## Test action locally
71
+
To run unit tests locally against this action, use the following:
0 commit comments