sfc-gh-mcastro/Cortex Code Action
GitHub Action that integrates Snowflake Cortex Code as an AI assistant for PRs and issues. Triggered by @cortex-code mentions.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| trigger_phrase | Phrase that triggers the action in comments | no | @cortex-code |
| snowflake_account | Snowflake account identifier (e.g., myorg-myaccount) | yes | — |
| snowflake_user | Snowflake username for authentication | yes | — |
| snowflake_private_key | Snowflake key-pair private key (PEM format). Mutually exclusive with snowflake_api_key. | no | — |
| snowflake_api_key | Snowflake API key or PAT. Mutually exclusive with snowflake_private_key. | no | — |
| github_token | GitHub token for API operations (PR comments, status checks) | no | ${{ github.token }} |
| model | Model identifier for Cortex Code (e.g., auto, claude-sonnet-4-6, openai-gpt-5.2) | no | auto |
| allowed_tools | Comma-separated additional tools to allow (e.g., SQL,WebSearch) | no | "" |
| disallowed_tools | Comma-separated tools to deny | no | "" |
| system_prompt | Additional system prompt text to append to the default | no | "" |
| branch_prefix | Prefix for branches created by Cortex Code | no | cortex-code/ |
| bot_name | Display name for the bot in git operations | no | cortex-code[bot] |
| bot_id | GitHub user ID for git operations | no | 41898282 |
| max_turns | Maximum number of agentic turns before stopping | no | "" |
| base_branch | Base branch for new branches (defaults to repo default branch) | no | "" |
| prompt | Direct prompt for agent mode. When provided, skips trigger detection and uses this as the instruction (e.g., for automated PR reviews). | no | "" |
Outputs
| name | description |
|---|---|
| branch_name | The branch created or used by Cortex Code |
| session_id | Cortex Code session ID for resuming |
| conclusion | Result status: success or failure |