Error Creating Project Analysis Token when login_name parameter is provided.
romanlytovchenko opened this issue · 1 comments
romanlytovchenko commented
Hi there,
Thank you for opening an issue.
Terraform Version
Terraform v1.5.7
Affected Resource(s)
Please list the resources as a list, for example:
- sonarqube_user_token
Terraform Configuration Files
resource "sonarqube_user_token" "sonarqube_user_token" {
name = "name"
type = "PROJECT_ANALYSIS_TOKEN"
project_key = "project_key"
expiration_date = "2023-12-21"
login_name = "login_name"
}
Expected Behavior
The resource is created.
Actual Behavior
"resourceSonarqubeUserTokenCreate: Failed to find user token" happens.
Is it possible this error comes in
due "login_name" attribute is set for USER_TOKEN type only?
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
References
Not clear for me why #204 was closed.
freeranger commented
Hi @romanlytovchenko - see my comment here: #238 (comment)
You cannot create project or global analysis tokens for other users - closing this issue as there is no action to take