``` docker run --rm \ -e INFRACOST_API_KEY=$...
# help
s
Copy code
docker run --rm \
      -e INFRACOST_API_KEY=${{env.API_KEY}}\
      -v $(pwd):/code \
      infracost/infracost:ci-0.10 comment github --path=/code/breakdown_output.json \
                   --repo=$GITHUB_REPOSITORY\
                   --github-token=${{env.token}} \
                   --pull-request=16 \
                   --behavior=update
I am getting a Bad credential error.
The pull request comment was generated successfully but could not be posted:
Is there a way I can get the comment which is generated and not post it, just store it and view it? Actually, I am able to post a comment using GitHub cli though.
l
Hi @straight-cat-63864 it might not be working if the GitHub env token isn't being passed into the container. If you want to just see the comment output you can add
--dry-run
s
Thanks @little-author-61621