snowflakedb/Snowflake Actions
Snowflake CI/CD actions for GitHub. Install the Snowflake CLI and/or the Cortex Code CLI, and configure authentication.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| snowflake-cli | Install the Snowflake CLI (snow). | no | true |
| cortex-code | Install the Cortex Code CLI (cortex). Public preview. | no | false |
| cli-version | Snowflake CLI version (by default, installs the latest version) | no | — |
| default-config-file-path | Path to the default config file | no | ./config.toml |
| custom-github-ref | GitHub branch, tag, or commit to install the Snowflake CLI from (if set, installs from GitHub; otherwise, installs from PyPI) | no | — |
| cortex-channel | Cortex Code CLI install channel: stable or beta | no | stable |
| cortex-version | Cortex Code CLI version to install (e.g. 1.5.2). Use 'latest' for the newest in the channel. | no | latest |
| connection-name | Connection name written to connections.toml when configuring the Cortex Code CLI from OIDC | no | default |
| cortex-prompt | Optional inline Cortex Code prompt string to run after setup (only when cortex-code: true). Mutually exclusive with cortex-prompt-file. Leave both empty to install and configure only. | no | "" |
| cortex-prompt-file | Optional path to a file containing the Cortex Code prompt to run after setup (only when cortex-code: true). Mutually exclusive with cortex-prompt. | no | "" |
| cortex-prompt-args | Extra arguments appended to `cortex exec` when running cortex-prompt/cortex-prompt-file (e.g. '--max-turns 4 --output-format stream-json'). Space-separated; quoted arguments containing spaces are not supported. | no | "" |
| use-oidc | Enable OIDC authentication | no | false |
| oidc-token-name | Name of the token environment variable for OIDC authentication. By default it is set for temporary connections (https://docs.snowflake.com/en/developer-guide/snowflake-cli/connecting/configure-connections#use-a-temporary-connection); change it to SNOWFLAKE_CONNECTIONS_<NAME>_TOKEN to work with named connections. | no | SNOWFLAKE_TOKEN |
Outputs
| name | description |
|---|---|
| snowflake-cli-version | Installed Snowflake CLI version (empty if snowflake-cli was not installed) |
| cortex-version | Installed Cortex Code CLI version (empty if cortex-code was not installed) |