From 79337174ad960ad7e24cd50899a5cbd7097d4d8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Sun, 21 Apr 2024 16:17:50 +0200 Subject: [PATCH] fix --- share/gitea-tekton-org/gitea_hook.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/gitea-tekton-org/gitea_hook.tf b/share/gitea-tekton-org/gitea_hook.tf index 5bb4423..6f515d2 100644 --- a/share/gitea-tekton-org/gitea_hook.tf +++ b/share/gitea-tekton-org/gitea_hook.tf @@ -44,12 +44,12 @@ resource "restapi_object" "gitea_org_hook" { }) } -resource "restapi_object" "ci-user-token" { +resource "restapi_object" "ci-token" { path = "/users/org-${var.organization}-ci/tokens" create_method = "POST" id_attribute = "name" data = jsonencode({ - name = "${var.organization}-tekton-${var.component}-${var.namespace}-${var.instance}" + name = "tekton-${var.organization}-${var.instance}-${var.component}-${var.namespace}" scopes = [ "write:repository" ]