This message was deleted.
# general
b
This message was deleted.
c
Hi Sathish, I remember someone else running into this issue, let me see if I can find that discussion.
g
thank you
using image name: infracost/infracost:ci-0.9
c
So I guess the first question is what kind of token are you using, personal or repo?
g
personal access token
c
Can you confirm you’re able to create comments manually, something like:
Copy code
curl -X POST --header "PRIVATE-TOKEN: redacted" --data-urlencode "body=test" <https://gitlab>.[redacted]/merge_requests/1/notes
g
yes, manually I tested before posting here and it was working
its working now with ci after adding below flag. can the sample pipeline and README file can be updated?
Copy code
$CI_SERVER_URL
      --gitlab-token
c
Nice. FWIW, somebody else had a problem with conflicting names:
the problem was, at the gitlab group level, they had also defined GITLAB_TOKEN as a variable
and for some reason gitlab’s variable precedence prefers those group level variables to the ones I set in the pipeline
its working now with ci after adding below flag. can the sample pipeline and README file can be updated?
Do you want to submit an MR? I’m happy to, but I’ll let you take the credit since you figured it out 🙂. Here’s the section of our docs where we talk abotu CI_SERVER_URL: https://www.infracost.io/docs/features/cli_commands/#gitlab
g
sure, will raise a MR
👍 1
the project name showing wrongly, any idea?
c
Hmm, what’s the log output?
The name should be detected from the
CI_PROJECT_URL
env, is that getting set?