https://infracost.io logo
#help
Title
# help
s

straight-cat-63864

07/19/2023, 6:15 PM
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

little-author-61621

07/19/2023, 6:33 PM
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

straight-cat-63864

07/21/2023, 1:00 PM
Thanks @little-author-61621
2 Views