Skip to main content

GitHub Actions

Run Station AI agents directly in your GitHub workflows without installing Station locally. The station-action supports three modes for loading agents.

Quick Start

The easiest way to add a Station agent workflow to your repository is using the CLI:
This interactive command will:
  1. Ask how you want to provide agents (CloudShip bundle ID or local environment)
  2. Help you select an agent to run
  3. Configure the workflow trigger (push, PR, schedule, manual)
  4. Generate .github/workflows/station-agent.yml
  5. Tell you which GitHub secrets to configure
Example session:

Manual Setup

Alternatively, you can manually create the workflow. The simplest approach is using a CloudShip bundle ID:

Agent Source Modes

Station action supports three ways to load agents:

Action Inputs

*At least one of bundle-id, bundle-url, or environment must be specified. If none are provided, the action looks for a local environments/default folder.

AI Provider Configuration

Complete Examples

Analytics Reporter

Run a PostHog analytics agent to summarize your dashboards:

PR Code Review

Review pull requests automatically:

Security Scan on Push

Scan for security issues on every push:

Publishing Bundles to CloudShip

To use bundle-id mode, first publish your agents to CloudShip:
Store your bundle ID somewhere safe. You’ll need it for the bundle-id input in your workflows.

Build-Time Actions

Station also provides reusable actions for building bundles and Docker images.

Build Bundle

Create distributable bundles from environments:

Build Docker Image

Build and push Docker images:

Setup Station CLI

Install Station CLI without running an agent:

Best Practices

Bundle-id mode keeps your repository clean - no Station configuration files to maintain. Agents are versioned separately in CloudShip.
Never hardcode API keys. Use GitHub secrets:
Complex tasks may need longer timeouts:
Add manual trigger for easy testing:

Troubleshooting

Ensure the agent name matches exactly (case-sensitive). List available agents:
For bundle-id mode, verify:
  • cloudship-api-key is set correctly
  • Bundle ID is valid and not deleted
  • Your CloudShip account has access to the bundle
Ensure required environment variables are passed:

Next Steps