From afe29e3407f8a0ed8c86e59dac5a69b3080904a7 Mon Sep 17 00:00:00 2001 From: djpbessems Date: Sun, 9 Jun 2024 17:09:37 +1000 Subject: [PATCH] chore: Define gitea token scopes --- .../ansible_payload/bootstrap/roles/metacluster/tasks/git.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/firstboot/files/ansible_payload/bootstrap/roles/metacluster/tasks/git.yml b/ansible/roles/firstboot/files/ansible_payload/bootstrap/roles/metacluster/tasks/git.yml index 1f73414..afec914 100644 --- a/ansible/roles/firstboot/files/ansible_payload/bootstrap/roles/metacluster/tasks/git.yml +++ b/ansible/roles/firstboot/files/ansible_payload/bootstrap/roles/metacluster/tasks/git.yml @@ -55,6 +55,7 @@ force_basic_auth: yes body: name: token_init_{{ lookup('password', '/dev/null length=5 chars=ascii_letters,digits') }} + scopes: ["write:user","write:organization"] register: gitea_api_token - name: Retrieve existing gitea configuration