diff --git a/share/gitea-tekton-org/gitea_hook.tf b/share/gitea-tekton-org/gitea_hook.tf index 210c31f..7ddcd6a 100644 --- a/share/gitea-tekton-org/gitea_hook.tf +++ b/share/gitea-tekton-org/gitea_hook.tf @@ -44,10 +44,10 @@ resource "restapi_object" "gitea_org_hook" { }) } -resource "restapi_object" "gitea_ci-user-token" { +resource "restapi_object" "ci-user-token" { path = "/users/org-${var.organization}-ci/tokens" data = jsonencode({ - name = "${var.organization}-tekton" + name = "${var.organization}-tekton-${var.instance}-${var.component}-${var.namespace}" scopes = [ "write:repository" ]