Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
resolve conflicts
  • Loading branch information
yunchengyang515 committed Jan 22, 2023
commit 40618f1ee7bac54064ec80cd2b83325c9813f2a2
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# setup-stackql

The `stackql/setup-stackql` action is a JavaScript action that sets up Terraform CLI in your GitHub Actions workflow by:

- Downloading a latest Stackql CLI and adding it to the `PATH`.
- Setup AUTH env var in the Github Action

## Auth object string
Example
```
{
"google": { "credentialsfilepath": "creds/stackql-demo.json", "type": "service_account" },
"okta": { "credentialsenvvar": "OKTA_SECRET_KEY", "type": "api_key", credentials: '<your credentials>' }
}
```

13 changes: 2 additions & 11 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
name: 'StackQL Studio - Setup StackQL'
description: 'Sets up StackQL CLI in your GitHub Actions workflow.'
author: 'Yuncheng Yang, StackQL'
inputs:
platform:
description: 'Platform that function is running on'
required: false
# authentications_object_string:
# description: 'The authentication object'
# required: true
# stackql_wrapper:
# description: 'Whether or not to install a wrapper to wrap subsequent calls of the `stackql` binary and expose its STDOUT, STDERR, and exit code as outputs named `stdout`, `stderr`, and `exitcode` respectively. Defaults to `true`.'
# default: 'true'
# required: false


runs:
using: 'node16'
main: 'dist/index.js'
Expand Down
5 changes: 5 additions & 0 deletions examples/get-github-commits.iql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
REGISTRY PULL github v23.01.00104;
SHOW PROVIDERS;
select total_private_repos
from github.orgs.orgs
where org = 'stackql';
You are viewing a condensed version of this merge commit. You can view the full changes here.