Error: json: cannot unmarshal number 2176460725 into Go value of type githubv4.Int
abdelmoez-guetat opened this issue · 2 comments
abdelmoez-guetat commented
I encountered an error when Infracost is trying to post a pull request comment using GitHub Actions using the following step in the GitHub Actions workflow:
- name: Post Infracost comment
run: |
infracost comment github --path=/tmp/infracost.json \
--repo=$GITHUB_REPOSITORY \
--github-token=${{github.token}} \
--pull-request=${{github.event.pull_request.number}} \
--behavior=update
Error Message:
Error: The pull request comment was generated successfully but could not be posted:
json: cannot unmarshal number 2176460725 into Go value of type githubv4.Int
See https://infracost.io/docs/troubleshooting/#5-posting-comments for help.
Error: Process completed with exit code 1.
alikhajeh1 commented
@abdelmoez-guetat just checking if you are using this? If so, can you check that tasks logs and let us know what CLI version it shows? it should be v0.10.38 (latest release).
- name: Setup Infracost
uses: infracost/actions/setup@v3
abdelmoez-guetat commented
@alikhajeh1 Thank you. It's working with the latest version, v0.10.38.