Use BIND_TEAM_API_TOKEN for danger bot

This is done to unify the token usage across our repositories to
simplify token maintenance.
This commit is contained in:
Nicki Křížek 2024-05-24 15:50:31 +02:00
parent b70ef5e5a4
commit 6767172bc0
No known key found for this signature in database
GPG key ID: 01623B9B652A20A7
2 changed files with 1 additions and 3 deletions

View file

@ -619,8 +619,6 @@ danger:
only:
refs:
- merge_requests
variables:
- $DANGER_GITLAB_API_TOKEN
checkbashisms:
<<: *precheck_job

View file

@ -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"])