https://infracost.io logo
#general
Title
# general
h

happy-electrician-59798

09/08/2022, 2:13 AM
Hi is it possible for Infracost to read private repo on GitHub? Do I need to give some additional permissions ?
l

little-author-61621

09/08/2022, 6:57 AM
Hi @happy-electrician-59798 how are you running Infracost? Are you using the GitHub action. CLI directly or something else?
h

happy-electrician-59798

09/08/2022, 4:44 PM
I am running with CircleCI orb on a private repo. I know I can still get the breakdown and write a script to post a comment on GH. But would be nice if I can work directly with infracost and pvt repo on GH.
l

little-author-61621

09/08/2022, 4:52 PM
@happy-electrician-59798 thanks for the details. The circleci-orb is deprecated. Instead we recommend using the steps here: https://github.com/infracost/infracost-circleci. This should work okay with private repos if you set the
GITHUB_TOKEN
env variable in CircleCI to a token that has access to your repo.
h

happy-electrician-59798

09/08/2022, 5:54 PM
Thank you! I will check this out