Skip to content

gitlab_project_job_token_scopes fails to refresh due to group vs project id

Hello,

I'm running in to this error "Error reading groups for project scopes" when using gitlab_project_job_token_scopes

https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/blob/main/internal/provider/resource_gitlab_project_job_token_scopes.go#L521

It seems that the gitlab_project_job_token_scopes does not try to guess if the ID is a project or a group as in gitlab_project_job_token_scope

https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/blob/main/internal/provider/resource_gitlab_project_job_token_scope.go#L212