[sysadmin-bin] Make use of the gitlab RO API token for projects instead



commit 86b84cd1f8bb7f84eb975f9850f977107f197259
Author: Andrea Veri <averi redhat com>
Date:   Wed Aug 11 11:10:05 2021 +0200

    Make use of the gitlab RO API token for projects instead

 ftpadmin | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/ftpadmin b/ftpadmin
index 69c63e3..271b59a 100755
--- a/ftpadmin
+++ b/ftpadmin
@@ -387,9 +387,9 @@ class DOAP(BasicInfo):
 
         TARBALL_PATH_PREFIX_LEN = len(self.TARBALL_PATH_PREFIX)
 
-        exec(open("/home/admin/secret/gitlab_rw").read())
+        exec(open("/home/admin/secret/gitlab_ro").read())
 
-        gl = gitlab.Gitlab('https://gitlab.gnome.org', GITLAB_PRIVATE_RW_TOKEN, api_version=4)
+        gl = gitlab.Gitlab('https://gitlab.gnome.org', GITLAB_PRIVATE_RO_TOKEN, api_version=4)
 
         group = gl.groups.get(8, with_projects=False)
         projects = group.projects.list(all=True, with_shared=False)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]