👋 Hello, team! We want to implement infracost for our PRs However it seems we are not allowed to give permissions to infracost to access our github due to security reasons . Is it possible for infracost to look into terraform plan and let us know the cost of that PR ?
Thanks Alistair. We looked into Jenkins Integration and this one is asking to setup PAT token for github. We can not give permission to InfraCost to access our github repose. Can InfraCost look into terraform plan to calculate cost ?
l
little-author-61621
01/27/2025, 1:13 PM
The PAT is just used by the Infracost CLI which runs locally in your pipeline to post the comment to your GitHub repo, so it's never stored by Infracost. You can run it without that but it won't be able to post the comment to your GitHub pull request. The Infracost CLI can work with a
--path
pointing to either a Terraform repo or a Terraform Plan JSON file.