Hi guys, How to use credentials GithubApp in $GH_...
# general
a
Hi guys, How to use credentials GithubApp in $GH_TOKEN ??
Copy code
infracost comment github --repo $BASE_REPO_OWNER/$BASE_REPO_NAME \
                                   --pull-request $PULL_NUM \
                                   --path $INFRACOST_DIR/infracost.json \
                                   --github-token $GH_TOKEN \
                                   --behavior new
w
@adorable-needle-64125 I’m curious why not just use the free Infracost GitHub App as it’s easier to setup?
a
@white-airport-8778 There are many process to enable this app in my github organization, it is easier configure Atlantis + infracost this moment
w
@adorable-needle-64125 I’ve not done that before or seen other users do it, I guess test your GH App token to see if that works? looking at this, my guess is that the same Atlantis GH App token could work as that also needs permission to post PR comments
a
I got it, the Github App token writes to the Atlantis ~/.git-credentials path, I exported it as an environment variable and it worked. Tks!!
👍 1