infracost/Infracost Actions

See cloud cost estimates and FinOps best practices for Terraform in pull requests.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 8, 2026
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: infracost/actions@c2e668fda0716ccc96353c6e6438c4a20448821a # scanner/v0.2.3

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

namedescriptionrequireddefault
api-keyYour 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
pathThe path that will be passed to `infracost breakdown`. This may be a path to a Terraform plan JSON or a Terraform project.yes
behaviorThe behavior to use when posting cost estimate comments. Must be one of 'update' | 'delete-and-new' | 'hide-and-new' | 'new'.noupdate

no outputs