You can configure Digger to use Infracost to estimate cloud costs.

Pre-requisites

Infracost binary needs to be installed into your CI pipeline (see Infracost docs)

Set up Infracost

Use the official setup-infracost action in your workflow file (README)

- name: Setup Infracost
        uses: infracost/actions/setup@v2
        # See https://github.com/infracost/actions/tree/master/setup for other inputs
        # If you can't use this action, see Docker images in https://infracost.io/cicd
        with:
          api-key: ${{ secrets.INFRACOST_API_KEY }}

Digger.yml configuration

projects:
  - name: project_a_d
    dir: ./project_a/development
    workflow: project_a

workflows:
  project_a:
    plan:
      steps:
        - init
        - plan
        - run: infracost breakdown --path=.

See cost estimate output

After the pipeline run finishes, you should see Infracost breakdown output in your CI job logs: