broad-zoo-34077
01/26/2022, 10:17 AMbusy-agent-35515
01/26/2022, 10:28 AMbusy-agent-35515
01/26/2022, 10:29 AMRunning compost:
compost autodetect update --body-file /tmp/tmp.JfADgb
Detected GitLab CI
Platform: gitlab
Project: infracost/gitlab-ci-demo
Target type: merge-request
Target ref: 22
Finding matching comments for tag `compost-comment`
Found 1 matching comment
Updating comment <https://gitlab.com/infracost/gitlab-ci-demo/-/merge_requests/22#note_811904842>
rich-artist-32531
01/26/2022, 10:39 AM$ infracost breakdown --path plan.json --format json --out-file infracost.json
time="2022-01-26T09:44:58Z" level=info msg="Detected Terraform plan JSON file at plan.json"
time="2022-01-26T09:44:58Z" level=info msg="Starting: Calculating monthly cost estimate"
Output saved to infracost.json
$ /scripts/ci/comment.sh infracost.json
Running infracost output:
infracost output --path infracost.json --format gitlab-comment --show-skipped --out-file /tmp/tmp.dBJoFK
Output saved to /tmp/tmp.dBJoFK
Running compost:
compost autodetect update --body-file /tmp/tmp.dBJoFK
Detected GitLab CI
Platform: gitlab
Project: [redacted, but correct!]
Target type: merge-request
Target ref: 1
Finding matching comments for tag `compost-comment`
Found 0 matching comments
Creating new comment
Error: Request failed with status code 403
It’s weird, because obviously some communication with the API is working because it’s found the correct project, and target MRbusy-agent-35515
01/26/2022, 10:40 AMFound 0 matching comments
rich-artist-32531
01/26/2022, 10:41 AMcurl -X POST --header "PRIVATE-TOKEN: redacted" --data-urlencode "body=test" <https://gitlab>.[redacted]/merge_requests/1/notes
busy-agent-35515
01/26/2022, 10:43 AMbody=test
is not recognized by CI as from Infracost. 🤔busy-agent-35515
01/26/2022, 10:44 AMbusy-agent-35515
01/26/2022, 10:46 AMmysterious-teacher-68276
01/26/2022, 10:46 AMmysterious-teacher-68276
01/26/2022, 10:47 AMrich-artist-32531
01/26/2022, 10:47 AMIs it possible to give the token more access rights? Maybe full access, just rule out the scope issue?the
api
level it has is actually already the full level it can have for a project access token (that’s unrestricted read/write to this project)rich-artist-32531
01/26/2022, 10:47 AM@rich-artist-32531 what kind of token are you using - personal or project?Project
mysterious-teacher-68276
01/26/2022, 10:49 AMrich-artist-32531
01/26/2022, 10:49 AMmysterious-teacher-68276
01/26/2022, 10:49 AMlittle-author-61621
little-author-61621