From 6d22a6831eb5418413043ead7a454319e54995b6 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Tue, 24 Mar 2026 10:52:08 +0100 Subject: Add https authentication using swf-auth-helper for git and gitlab --- .bashrc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index 594d391..03fd0ab 100644 --- a/.bashrc +++ b/.bashrc @@ -129,14 +129,6 @@ alias assume=". assume" # ==== Functions gitlab_token() { - GITLAB_TOKEN=$(pass mbition/git | grep token | awk '{ print $NF}') - export GITLAB_TOKEN -} -gitlab_su_token() { - GITLAB_TOKEN=$(pass mbition/git | grep su_token | awk '{ print $NF}') - export GITLAB_TOKEN -} -gitlab_baas_token() { - GITLAB_TOKEN=$(pass mbition/git | grep baas_token | awk '{ print $NF}') + GITLAB_TOKEN="$(swf-credential-helper shell get 'git.swf.i.mercedes-benz.com')" export GITLAB_TOKEN } -- cgit v1.2.3