| pulumi-plan-json | Path to the pulumi preview --json output file | no | plan.json |
| github-token | GitHub Token for posting comments | no | ${{ github.token }} |
| finfocus-version | Version of finfocus to install | no | latest |
| install-plugins | Comma-separated list of plugins to install (e.g., aws-public) | no | "" |
| behavior-on-error | Behavior when an error occurs (fail, warn, silent) | no | fail |
| post-comment | Whether to post a comment to the PR (true/false) | no | true |
| fail-on-cost-increase | Threshold string (e.g., "100USD") to fail if diff exceeds | no | "" |
| analyzer-mode | If true, sets up environment for pulumi preview to use as analyzer | no | false |
| detailed-comment | If true, provides a detailed breakdown of all resources and metadata in the PR comment | no | false |
| include-recommendations | Include cost optimization recommendations in PR comment (true/false) | no | true |
| log-level | Log level for finfocus (debug, info, warn, error) | no | error |
| debug | If true, enables detailed debug logging for the action itself | no | false |
| include-actual-costs | Include actual/historical costs in PR comment (true/false) | no | false |
| actual-costs-period | Time period for actual costs: 7d, 30d, mtd (month-to-date), or custom YYYY-MM-DD | no | 7d |
| pulumi-state-json | Path to Pulumi state JSON for state-based cost estimation | no | "" |
| actual-costs-group-by | Group actual costs by: resource, type, provider, daily, monthly | no | provider |
| include-sustainability | Include carbon footprint and sustainability metrics (true/false) | no | true |
| utilization-rate | Assumed utilization rate for sustainability calculations (0.0 to 1.0) | no | 1.0 |
| sustainability-equivalents | Show impact equivalents like trees, miles driven (true/false) | no | true |
| fail-on-carbon-increase | Threshold (e.g., "10%", "10kg") to fail if carbon footprint increases | no | "" |
| budget-amount | Budget amount for cost tracking (e.g., 1000) | no | "" |
| budget-currency | Budget currency code (e.g., USD) | no | USD |
| budget-period | Budget period: monthly, quarterly, yearly | no | monthly |
| budget-alerts | Budget alerts in JSON format: [{"threshold": 80, "type": "actual"}, {"threshold": 100, "type": "forecasted"}] | no | "" |
| budget-alert-threshold | Percentage threshold to trigger budget alert in PR comment | no | 80 |
| fail-on-budget-health | Fail if budget health score falls below this value (0-100) | no | "" |
| show-budget-forecast | Display budget forecast in PR comment | no | true |
| budget-scopes | YAML multiline string of scoped budgets. Each line is "scope: amount".
Scope formats: provider/aws, type/compute, tag/env:prod
Example:
provider/aws: 1000
provider/gcp: 500
type/compute: 1200
| no | "" |
| fail-on-budget-scope-breach | Fail the action if any scoped budget is exceeded (true/false) | no | false |