Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrie30 committed Oct 17, 2024
2 parents e753eeb + d5c8781 commit 80e04f7
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions configs/configs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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_USERNAME") == "" {
return ErrNoBitbucketUsername
}

if os.Getenv("GHORG_BITBUCKET_APP_PASSWORD") == "" {
return ErrNoBitbucketAppPassword
if os.Getenv("GHORG_BITBUCKET_APP_PASSWORD") == "" {
return ErrNoBitbucketAppPassword
}
}
}

Expand Down

0 comments on commit 80e04f7

Please sign in to comment.