add-scope-to-token #33
No reviewers
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/terraform-provider-gitea#33
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "tobiasbp/terraform-provider-gitea:add-scope-to-token"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
I don't think I can do anything about the failed check. It looks to me like it is not related to my changes?