From 16322b33902ecfb23d31f5fe7689a81e2e4ecea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicki=20K=C5=99=C3=AD=C5=BEek?= Date: Fri, 24 May 2024 15:51:40 +0200 Subject: [PATCH] Use BIND_TEAM_WRITE_TOKEN for autobackport bot This is done to unify the token usage across our repositories to simplify token maintenance. (cherry picked from commit d391f0c9586c619a2ceead562327ebad8840e69d) --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ebab61e380..64eb3e8360 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1939,7 +1939,7 @@ backports: GIT_DEPTH: 200 script: # CI job token is not sufficient for push operations - - git remote get-url origin | sed -e "s/gitlab-ci-token:$CI_JOB_TOKEN/oauth2:$BACKPORT_GITLAB_API_TOKEN/" | xargs git remote set-url --push origin + - git remote get-url origin | sed -e "s/gitlab-ci-token:$CI_JOB_TOKEN/oauth2:$BIND_TEAM_WRITE_TOKEN/" | xargs git remote set-url --push origin # force-pushing is disabled so we have to have merge request on top - MERGE_REQUEST_ID="$(git log -1 --format='%b' | sed --silent -e 's/^See merge request [^!]\+!//p')" - git clone --depth 1 https://gitlab.isc.org/isc-projects/bind9-qa.git