Update configs.go (#465)

This commit is contained in:
gabrie30
2024-10-17 07:58:48 +05:30
committed by GitHub
parent bbc428735f
commit d5c8781768

View File

@@ -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
}
}
}