Skip to content

Latest commit

 

History

History

examples

Examples

All examples post a single comment on pull requests, which gets updated as more changes are pushed. The examples show how to run the actions with:

Cost policy examples:

  • Thresholds: only post a comment when cost thresholds are exceeded, a similar thing can be done with bash and jq
  • Conftest: check Infracost cost estimates against policies using Conftest
  • OPA: check Infracost cost estimates against policies using Open Policy Agent
  • Sentinel: check Infracost cost estimates against policies using Hashicorp's Sentinel

See the contributing guide if you'd like to add an example.