fix
This commit is contained in:
@@ -47,9 +47,14 @@ resource "restapi_object" "gitea_org_hook" {
|
|||||||
resource "restapi_object" "ci-token" {
|
resource "restapi_object" "ci-token" {
|
||||||
path = "/users/org-${var.organization}-ci/tokens"
|
path = "/users/org-${var.organization}-ci/tokens"
|
||||||
create_method = "POST"
|
create_method = "POST"
|
||||||
|
read_path = "/users/org-${var.organization}-ci/tokens"
|
||||||
|
read_search = {
|
||||||
|
search_key = "name"
|
||||||
|
search_value = "tekton-${var.organization}"
|
||||||
|
}
|
||||||
id_attribute = "name"
|
id_attribute = "name"
|
||||||
data = jsonencode({
|
data = jsonencode({
|
||||||
name = "tekton-${var.organization}-${var.instance}-${var.component}-${var.namespace}"
|
name = "tekton-${var.organization}"
|
||||||
scopes = [
|
scopes = [
|
||||||
"write:repository"
|
"write:repository"
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user