terraform-provider-gitea/gitea
tobiasbp 167ce6ed80
All checks were successful
Setup Terraform / Terraform Versions (push) Successful in 6s
add-scope-to-token (#33)
This PR adds the ability to set scopes for tokens (they can not be used for much without). Removed the _username_ from the _token resource_ as the owner can not be configured, as it will be owned by the user creating the resource.

As far as I can tell, it's not possible to modify the scopes for a existing token using the API, so a token created by the provider will be recreated if the list of scopes is updated. This reflects what is possible using the GUI.

This PR fixes this issue: #32

Reviewed-on: #33
Co-authored-by: tobiasbp <tobiasbp@noreply.gitea.com>
Co-committed-by: tobiasbp <tobiasbp@noreply.gitea.com>
2023-11-16 00:52:35 +00:00
..
config.go lerentis's changes (#12) 2023-09-06 01:44:01 +00:00
data_source_gitea_org.go lerentis's changes (#12) 2023-09-06 01:44:01 +00:00
data_source_gitea_repo.go lerentis's changes (#12) 2023-09-06 01:44:01 +00:00
data_source_gitea_repos.go Initial commit 2022-03-31 17:24:00 -04:00
data_source_gitea_team.go Initial commit 2022-03-31 17:24:00 -04:00
data_source_gitea_teams.go Initial commit 2022-03-31 17:24:00 -04:00
data_source_gitea_user_test.go lerentis's changes (#12) 2023-09-06 01:44:01 +00:00
data_source_gitea_user.go lerentis's changes (#12) 2023-09-06 01:44:01 +00:00
data_source_team_members.go Initial commit 2022-03-31 17:24:00 -04:00
provider_test.go lerentis's changes (#12) 2023-09-06 01:44:01 +00:00
provider.go New resources for managing team membership (#36) 2023-11-16 00:52:16 +00:00
resource_gitea_fork.go lerentis's changes (#12) 2023-09-06 01:44:01 +00:00
resource_gitea_git_hook.go lerentis's changes (#12) 2023-09-06 01:44:01 +00:00
resource_gitea_oauth_app.go lerentis's changes (#12) 2023-09-06 01:44:01 +00:00
resource_gitea_organisation.go lerentis's changes (#12) 2023-09-06 01:44:01 +00:00
resource_gitea_public_key.go lerentis's changes (#12) 2023-09-06 01:44:01 +00:00
resource_gitea_repository_key.go lerentis's changes (#12) 2023-09-06 01:44:01 +00:00
resource_gitea_repository_webhook.go Add repository webhook resource (#28) 2023-10-24 19:46:11 +00:00
resource_gitea_repository.go lerentis's changes (#12) 2023-09-06 01:44:01 +00:00
resource_gitea_team_members.go New resources for managing team membership (#36) 2023-11-16 00:52:16 +00:00
resource_gitea_team_membership.go New resources for managing team membership (#36) 2023-11-16 00:52:16 +00:00
resource_gitea_team.go New resources for managing team membership (#36) 2023-11-16 00:52:16 +00:00
resource_gitea_token.go add-scope-to-token (#33) 2023-11-16 00:52:35 +00:00
resource_gitea_user.go lerentis's changes (#12) 2023-09-06 01:44:01 +00:00