Skip to content

Commit

Permalink
Update configs.go (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrie30 authored Oct 17, 2024
1 parent bbc4287 commit d5c8781
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 d5c8781

Please sign in to comment.