Title
#general
p

Prad Sanyal

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 ?
Alistair (Infracost)

Alistair (Infracost)

09/08/2022, 6:57 AM
Hi @Prad Sanyal how are you running Infracost? Are you using the GitHub action. CLI directly or something else?
p

Prad Sanyal

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.
Alistair (Infracost)

Alistair (Infracost)

09/08/2022, 4:52 PM
@Prad Sanyal 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.
p

Prad Sanyal

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