infracost/Infracost Actions
See cloud cost estimates and FinOps best practices for Terraform in pull requests.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 8, 2026
- License
- Apache 2.0
Pinned Snippet
uses: infracost/actions@c2e668fda0716ccc96353c6e6438c4a20448821a # scanner/v0.2.3tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| api-key | Your Infracost API key. It can be retrieved by running `infracost configure get api_key`. We recommend using your same API key in all environments. If you don't have one, download Infracost (https://www.infracost.io/docs/#quick-start) and run `infracost auth login` to get a free API key. | yes | — |
| path | The path that will be passed to `infracost breakdown`. This may be a path to a Terraform plan JSON or a Terraform project. | yes | — |
| behavior | The behavior to use when posting cost estimate comments. Must be one of 'update' | 'delete-and-new' | 'hide-and-new' | 'new'. | no | update |
Outputs
no outputs