Commit 4af59403 authored by David Foucher's avatar David Foucher

Remove env COMMIT_AUTHORIZED

parent 717fac43
Pipeline #2950 passed with stage
in 1 minute and 34 seconds
......@@ -11,7 +11,6 @@ services:
- CATALOG_KEY=${CATALOG_KEY}
- CATALOG_URL=${CATALOG_URL}
- GITLAB_TOKEN=${GITLAB_TOKEN}
- COMMIT_AUTHORIZED=${COMMIT_AUTHORIZED}
healthcheck:
test: curl -sfS http://127.0.0.1:8000/healthcheck || exit 1
interval: 5s
......@@ -30,7 +29,6 @@ services:
- CATALOG_KEY=${CATALOG_KEY}
- CATALOG_URL=${CATALOG_URL}
- GITLAB_TOKEN=${GITLAB_TOKEN}
- COMMIT_AUTHORIZED=${COMMIT_AUTHORIZED}
healthcheck:
test: curl -sfS http://127.0.0.1:8000/naf?q=1000 || exit 1
interval: 5s
......
......@@ -32,11 +32,7 @@ CATALOG_URL = os.environ.get(
GITLAB_URL = os.environ.get("GITLAB_URL", "https://git.beta.pole-emploi.fr")
GITLAB_PROJECT = os.environ.get("GITLAB_PROJECT", "open-source/trefle")
GITLAB_TOKEN = os.environ.get("GITLAB_TOKEN", "need-private-access-token")
# TODO remove COMMIT_AUTHORIZED env var hence AUTHORIZED replaced it
COMMIT_AUTHORIZED = set(os.environ.get(
"COMMIT_AUTHORIZED",
"contributeur@trefle.beta.pole-emploi.fr"
).split(', '))
COMMIT_AUTHORIZED = []
AUTHORIZED = []
......@@ -208,7 +204,7 @@ def init():
f.seek(0)
AUTHORIZED.extend(load_authorisations(f.read()))
for auth in AUTHORIZED:
COMMIT_AUTHORIZED.add(auth.get('email', ''))
COMMIT_AUTHORIZED.append(auth.get('email', ''))
load_features()
print("Done initializing config")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment