basetenlabs/Truss Push

Deploy and validate a Truss model or chain on Baseten

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jun 22, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: basetenlabs/action-truss-push@7c8c19be6e4d1880db111e55f4bdeea845b92b92 # v0.1.2

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
truss-directoryPath to a model directory containing config.yaml, or a .py file for chain deploymentsyes
baseten-api-keyBaseten API key (from secrets)yes
model-nameOverride the model/chain name (maps to truss push --model-name for models, or chain_name for chains)no""
environmentPublish to a specific environmentno""
include-git-infoAttach git versioning info (sha, branch, tag) to the deploymentnotrue
labelsJSON string of labels as key-value pairs (e.g. '{"team": "ml", "project": "llm"}')no""
deployment-nameName of the deployment. Defaults to 'PR-<number>_<sha>' on pull requests or '<sha>' otherwiseno""
cleanupWhether to deactivate the deployment after validationnotrue
predict-payloadJSON predict payload. For models, defaults to model_metadata.example_model_input from config.yaml. For chains, must be provided explicitly.no""
deploy-timeout-minutesMax minutes to wait for deployment to become activeno45
predict-timeoutTimeout in seconds for predict requestno300
regional-environmentUse regional endpoint format for predict requestsnofalse
teamBaseten team name to deploy to (required when the API key has access to multiple teams)no""
namedescription
deployment-idBaseten deployment ID
model-idBaseten model ID (models only)
chain-idBaseten chain ID (chains only)
model-nameModel or chain name
deploy-time-secondsWall-clock seconds from push to active
predict-responseResponse from predict call (truncated to 4KB)
statusOne of: success, deploy_failed, deploy_timeout, predict_failed, cleanup_failed