Hello,
My organization connect SonarCloud with Gitlab using organizational binding with token key.
Everything works, but we want to automate this process of renewing the token.
On GitLab side the process is automated, using terraform, but how we can automatically change the token Organization Settings → Organization Binding → Current binding ?
I can’t find proper terraform provider, or API URLs ?
Thanks!
Hey there.
I think you’ll find this guide helpful:
Thanks, but to be able to see the API call, I need to create one, which means to change the token, right? I don’t want to change it right now.
Yes, that’s what it implies. But honestly, you will probably want to test any kind of automation you build, which will mean changing it at least once.
If it’s really a no-go on your existing org, you might create a new test organization to run these tests with (and get to the bottom of the API).
I know this isn’t a valid replacement for a well-documented non-internal API, and we’re working on that.