simple fixes

This commit is contained in:
Andrei Yankovich 2021-01-04 17:30:08 +03:00
parent 0df7218d5c
commit dfb70bee63

View File

@ -35,6 +35,13 @@ class BuildBotIdentity(BuildBotModule):
console_view={}, console_view={},
grid_view={})) grid_view={}))
scr = SecretManager(str(Path.home()) + "/buildBotSecret/secret.json")
self.masterConf['www']['auth'] = util.GitHubAuth(
scr.getValue("QuasarAppCIID"),
scr.getValue("QuasarAppCIToken"),
apiVersion=4, getTeamsMembership=True)
self.masterConf['www']['authz'] = util.Authz( self.masterConf['www']['authz'] = util.Authz(
allowRules=[ allowRules=[
util.AnyEndpointMatcher(role="admins"), util.AnyEndpointMatcher(role="admins"),
@ -51,10 +58,3 @@ class BuildBotIdentity(BuildBotModule):
] ]
) )
scr = SecretManager(str(Path.home()) + "/buildBotSecret/secret.json")
self.masterConf['www']['auth'] = util.GitHubAuth(
scr.getValue("QuasarAppCIID"),
scr.getValue("QuasarAppCIToken"),
apiVersion=4, getTeamsMembership=True)