From 6767172bc0fc2f7fbb44c24144ea40c0836b9913 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicki=20K=C5=99=C3=AD=C5=BEek?= Date: Fri, 24 May 2024 15:50:31 +0200 Subject: [PATCH] Use BIND_TEAM_API_TOKEN for danger bot This is done to unify the token usage across our repositories to simplify token maintenance. --- .gitlab-ci.yml | 2 -- dangerfile.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f9d84059552..d2614b1b057 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -619,8 +619,6 @@ danger: only: refs: - merge_requests - variables: - - $DANGER_GITLAB_API_TOKEN checkbashisms: <<: *precheck_job diff --git a/dangerfile.py b/dangerfile.py index 8c0bc9f9e1f..cb04aeb384d 100644 --- a/dangerfile.py +++ b/dangerfile.py @@ -58,7 +58,7 @@ is_full_backport = is_backport and "Backport::Partial" not in mr_labels gl = gitlab.Gitlab( url=f"https://{os.environ['CI_SERVER_HOST']}", - private_token=os.environ["DANGER_GITLAB_API_TOKEN"], + private_token=os.environ["BIND_TEAM_API_TOKEN"], ) proj = gl.projects.get(os.environ["CI_PROJECT_ID"]) mr = proj.mergerequests.get(os.environ["CI_MERGE_REQUEST_IID"]) -- 2.47.3