summaryrefslogtreecommitdiffstats
path: root/.bashrc
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-03-24 10:52:08 +0100
committerAhmed Abdelhalim <[email protected]>2026-04-01 14:57:44 +0200
commit6d22a6831eb5418413043ead7a454319e54995b6 (patch)
treee54a0b1b929501eb3fd9efb73f83831f5f441acc /.bashrc
parentc6a1a4ac037709b31bfb6d37a8234dd60ca88c12 (diff)
Add https authentication using swf-auth-helper for git and gitlab
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc10
1 files changed, 1 insertions, 9 deletions
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
}