diff --git a/cve-agency-manager/cve_tracking/util/gitlab_api.py b/cve-agency-manager/cve_tracking/util/gitlab_api.py index a127e8a63741bc46079e6a965818bf00e4b9ad03..5fcc2d5fcca0e767565b27748042cbd43cc69fad 100644 --- a/cve-agency-manager/cve_tracking/util/gitlab_api.py +++ b/cve-agency-manager/cve_tracking/util/gitlab_api.py @@ -21,15 +21,15 @@ class Gitlab(Api): host = "https://gitlab.com/api/v4/projects" def __init__(self) -> None: - if not settings.token(name="gitlab") and not os.getenv("GITLAB-TOKEN", None): + if not settings.token(name="gitlab") and not os.getenv("GITLAB_TOKEN", None): raise ConfigNotFoundError( - "Please set the 'GITLAB-TOKEN' environment variable for gitlab." + "Please set the 'GITLAB_TOKEN' environment variable for gitlab." ) super(Gitlab, self).__init__() @property def _headers(self): - return {"PRIVATE-TOKEN": os.getenv("GITLAB-TOKEN", settings.token('gitlab'))} + return {"PRIVATE-TOKEN": os.getenv("GITLAB_TOKEN", settings.token('gitlab'))} async def get_commit_comments(self, commit_sha): """