4
0
mirror of https://github.com/QuasarApp/QuasarAppCI.git synced 2025-05-04 01:09:37 +00:00

simple fixes

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

@ -35,6 +35,13 @@ class BuildBotIdentity(BuildBotModule):
console_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(
allowRules=[
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)