Repository: provectus/kafka-ui
Issue: Create a separate technical account for branch deployments
Labels: type/enhancement
scope/infrastructure

With a separate credentials

Discussed [here](https://github.com/provectus/kafka-ui/pull/1108#discussion_r752768474)

Issue comments:
Hi , this PR will fix using personal deployment creds https://github.com/provectus/kafka-ui/pull/1122 

Pull request review comments:

Patch that resolved the issue:
diff --git a/.github/workflows/branch-deploy.yml b/.github/workflows/branch-deploy.yml
index 25f59849f58..62a77919d26 100644
--- a/.github/workflows/branch-deploy.yml
+++ b/.github/workflows/branch-deploy.yml
@@ -78,14 +78,14 @@ jobs:
     steps:
       - name: clone
         run: |
-          git clone https://azsafin:${{ secrets.KAFKA_UI_INFRA_TOKEN }}@gitlab.provectus.com/provectus-internals/kafka-ui-infra.git
+          git clone https://kafka-ui-infra:${{ secrets.KAFKA_UI_INFRA_TOKEN }}@gitlab.provectus.com/provectus-internals/kafka-ui-infra.git
       - name: create deployment
         run: |
           cd kafka-ui-infra/aws-infrastructure4eks/argocd/scripts
           echo "Branch:${{ needs.build.outputs.tag }}"
           ./kafka-ui-deployment-from-branch.sh ${{ needs.build.outputs.tag }}
-          git config --global user.email "azsafin@provectus.com"
-          git config --global user.name "azsafin"
+          git config --global user.email "kafka-ui-infra@provectus.com"
+          git config --global user.name "kafka-ui-infra"
           git add ../kafka-ui-from-branch/
           git commit -m "added env:${{ needs.build.outputs.deploy }}" && git push || true
       - name: make comment with deployment link
diff --git a/.github/workflows/branch-remove.yml b/.github/workflows/branch-remove.yml
index 848825e5e58..cef13859e81 100644
--- a/.github/workflows/branch-remove.yml
+++ b/.github/workflows/branch-remove.yml
@@ -22,14 +22,14 @@ jobs:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
       - name: clone
         run: |
-          git clone https://azsafin:${{ secrets.KAFKA_UI_INFRA_TOKEN }}@gitlab.provectus.com/provectus-internals/kafka-ui-infra.git
+          git clone https://kafka-ui-infra:${{ secrets.KAFKA_UI_INFRA_TOKEN }}@gitlab.provectus.com/provectus-internals/kafka-ui-infra.git
       - name: remove env
         run: |
           cd kafka-ui-infra/aws-infrastructure4eks/argocd/scripts
           echo "Branch:${{ steps.extract_branch.outputs.tag }}"
           ./delete-env.sh ${{ steps.extract_branch.outputs.tag }}
-          git config --global user.email "azsafin@provectus.com"
-          git config --global user.name "azsafin"
+          git config --global user.email "kafka-ui-infra@provectus.com"
+          git config --global user.name "kafka-ui-infra"
           git add ../kafka-ui-from-branch/
           git commit -m "removed env:${{ needs.build.outputs.deploy }}" && git push || true
       - name: make comment with deployment link
diff --git a/.github/workflows/master.yaml b/.github/workflows/master.yaml
index 421a8f33752..0417c5203b1 100644
--- a/.github/workflows/master.yaml
+++ b/.github/workflows/master.yaml
@@ -67,11 +67,11 @@ jobs:
 #################################
       - name: update-master-deployment
         run: |
-          git clone https://azsafin:${{ secrets.KAFKA_UI_INFRA_TOKEN }}@gitlab.provectus.com/provectus-internals/kafka-ui-infra.git --branch master
+          git clone https://kafka-ui-infra:${{ secrets.KAFKA_UI_INFRA_TOKEN }}@gitlab.provectus.com/provectus-internals/kafka-ui-infra.git --branch master
           cd kafka-ui-infra/aws-infrastructure4eks/argocd/scripts
           echo "Image digest is:${{ steps.docker_build_and_push.outputs.digest }}"
           ./kafka-ui-update-master-digest.sh ${{ steps.docker_build_and_push.outputs.digest }}
-          git config --global user.email "azsafin@provectus.com"
-          git config --global user.name "azsafin"
+          git config --global user.email "kafka-ui-infra@provectus.com"
+          git config --global user.name "kafka-ui-infra"
           git add ../kafka-ui/*
           git commit -m "updated master image digest: ${{ steps.docker_build_and_push.outputs.digest }}" && git push


Test patch: