From d5c878176860f7c1b0dc284de38d5adbe49b7920 Mon Sep 17 00:00:00 2001 From: gabrie30 Date: Thu, 17 Oct 2024 07:58:48 +0530 Subject: [PATCH] Update configs.go (#465) --- configs/configs.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/configs/configs.go b/configs/configs.go index de900bf..76b6642 100644 --- a/configs/configs.go +++ b/configs/configs.go @@ -300,12 +300,15 @@ func VerifyTokenSet() error { } if scmProvider == "bitbucket" { - if os.Getenv("GHORG_BITBUCKET_USERNAME") == "" { - return ErrNoBitbucketUsername - } + if os.Getenv("GHORG_BITBUCKET_OAUTH_TOKEN") == "" { - if os.Getenv("GHORG_BITBUCKET_APP_PASSWORD") == "" { - return ErrNoBitbucketAppPassword + if os.Getenv("GHORG_BITBUCKET_USERNAME") == "" { + return ErrNoBitbucketUsername + } + + if os.Getenv("GHORG_BITBUCKET_APP_PASSWORD") == "" { + return ErrNoBitbucketAppPassword + } } }