c3xdev/c3x
Cloud cost estimation for Terraform & CloudFormation. Installs the c3x CLI, posts the per-PR cost delta as a comment, and enforces budget / budget-delta gates. No API key required.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jun 30, 2026
- License
- Apache 2.0
Pinned Snippet
uses: c3xdev/c3x@754ce0e1e372e0968a926eb2217fe98e96a1abf0 # v0.1.4tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| version | c3x version to install (e.g. v0.1.0). "latest" resolves the newest release. | — | latest |
| install-only | Only install the binary; skip the estimate. | — | false |
| path | Terraform directory, plan JSON, or CloudFormation template. | — | . |
| comment | Post/update the cost comment on the current PR (needs pull-requests write). | — | true |
| branded-comments | Post the PR comment as the c3x-cloud[bot] instead of github-actions. Requires the c3x-cloud GitHub App installed on the repo and 'permissions: id-token: write' in the workflow. Falls back to the default github-actions identity if either is missing. | — | false |
| token-service | C3X Cloud token service URL (advanced; default token.c3x.dev). | — | https://token.c3x.dev |
| budget | Fail when the monthly total exceeds this amount (0 disables). | — | 0 |
| budget-delta | Fail when this PR *increases* the monthly total by more than this amount versus the base branch (0 disables). Independent of budget. | — | 0 |
| format | Output format for the workflow log (text, markdown, json, junit, html, csv, sarif). | — | text |
| currency | Display currency (USD, EUR, GBP, ...). | — | "" |
Outputs
no outputs