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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -300,12 +300,15 @@ func VerifyTokenSet() error {
} }
if scmProvider == "bitbucket" { if scmProvider == "bitbucket" {
if os.Getenv("GHORG_BITBUCKET_USERNAME") == "" { if os.Getenv("GHORG_BITBUCKET_OAUTH_TOKEN") == "" {
return ErrNoBitbucketUsername
}
if os.Getenv("GHORG_BITBUCKET_APP_PASSWORD") == "" { if os.Getenv("GHORG_BITBUCKET_USERNAME") == "" {
return ErrNoBitbucketAppPassword return ErrNoBitbucketUsername
}
if os.Getenv("GHORG_BITBUCKET_APP_PASSWORD") == "" {
return ErrNoBitbucketAppPassword
}
} }
} }