{"id":15156417,"url":"https://github.com/rewe-digital/terraform-provider-sonarcloud","last_synced_at":"2025-09-30T04:32:30.222Z","repository":{"id":37789683,"uuid":"337463146","full_name":"rewe-digital/terraform-provider-sonarcloud","owner":"rewe-digital","description":"Terraform SonarCloud Provider","archived":true,"fork":false,"pushed_at":"2024-03-27T12:58:14.000Z","size":276,"stargazers_count":17,"open_issues_count":8,"forks_count":16,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-15T04:19:33.466Z","etag":null,"topics":["sonarcloud","terraform","terraform-provider"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/providers/rewe-digital/sonarcloud/latest/docs","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rewe-digital.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-09T16:17:27.000Z","updated_at":"2024-03-27T12:59:25.000Z","dependencies_parsed_at":"2024-06-20T17:18:01.840Z","dependency_job_id":"28831e94-2ee8-488f-8cdb-8a36f3b77fd5","html_url":"https://github.com/rewe-digital/terraform-provider-sonarcloud","commit_stats":{"total_commits":187,"total_committers":11,"mean_commits":17.0,"dds":0.6737967914438503,"last_synced_commit":"f60e7917151238a9a3ad92a95c7815e1faabd8ed"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rewe-digital%2Fterraform-provider-sonarcloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rewe-digital%2Fterraform-provider-sonarcloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rewe-digital%2Fterraform-provider-sonarcloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rewe-digital%2Fterraform-provider-sonarcloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rewe-digital","download_url":"https://codeload.github.com/rewe-digital/terraform-provider-sonarcloud/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234702083,"owners_count":18873827,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["sonarcloud","terraform","terraform-provider"],"created_at":"2024-09-26T19:21:08.421Z","updated_at":"2025-09-30T04:32:24.945Z","avatar_url":"https://github.com/rewe-digital.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Provider SonarCloud\n\nA Terraform provider for managing SonarCloud user groups and their permissions.\n\n## Requirements\n\n-\t[Terraform](https://www.terraform.io/downloads.html) \u003e= 1.x\n-\t[Go](https://golang.org/doc/install) \u003e= 1.17\n-   [GoReleaser](https://goreleaser.com/) \u003e= 0.153.x\n\n## Installing the Provider locally\n\n1. Clone the repository\n1. Enter the repository directory\n1. Run `make install` to build the terraform provider and store it in `~/.terraform/plugins`. \n\n**Note**: this uses Goreleaser under the hood. Alternatively you can use `go build` and move the binary to the correct location yourself.\n\n## Developing the Provider\n\nIf you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (see [Requirements](#requirements) above).\n\nTo compile the provider, run `make build`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory.\n\nRun `make test` to run all unit tests. This should work without further config and not touch any infrastructure.\n\nRun `make testacc` to run all acceptance tests. This relies on quite a specific test-organization being available in SonarCloud.\nThe project should have the following 3 groups:\n  \n- Members (Default) - with 2 members\n- Owners (Should be auto-created as well) - with 1 member\n- TEST_DONT_REMOVE - with 0 members (see environment variables below to see how to customize this)\n\nAcceptance tests also rely on the following preconfigured SonarCloud Resources:\n\n- One test Quality Gate\n- One test Project\n  \n Set the following environment variables before running the acceptance test: \n\n| Variable | Description |\n|---|---|\n| `SONARCLOUD_ORGANIZATION` | The name of the org to run tests against. |\n| `SONARCLOUD_TOKEN` | A token with admin permissions for the organization. |\n| `SONARCLOUD_TEST_USER_LOGIN` | The login for testing `sonarcloud_user_group_member`. Must be an existing member of the org and in the form of `\u003cgithub_handle\u003e@github` if you have imported the user via GitHub. |\n| `SONARCLOUD_TEST_GROUP_NAME` | The name of an existing group to which the test-user will be added and removed from. | \n| `SONARCLOUD_TOKEN_TEST_USER_LOGIN` | The login for testing `sonarcloud_user_token`. This must be the login that also has the existing `SONARCLOUD_TOKEN`. |\n| `SONARCLOUD_PROJECT_KEY` | The Key of a test `project` for testing the `sonarcloud_quality_gate_selection` resource. |\n| `SONARCLOUD_QUALITY_GATE_ID` | The `GateId` of a test `Quality Gate` for testing `sonarcloud_qualtiy_gate_selection` resource. |\n| `SONARCLOUD_QUALITY_GATE_NAME` | The `name` of a test `Quality Gate` for testing the `sonarcloud_qualtiy_gate` data source. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frewe-digital%2Fterraform-provider-sonarcloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frewe-digital%2Fterraform-provider-sonarcloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frewe-digital%2Fterraform-provider-sonarcloud/lists"}