From 267b1bf58255d83a3a3c7b6aff5cec213803172f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Sun, 21 Apr 2024 16:06:36 +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 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" ]