Skip to content

Commit

Permalink
Update bitbucket.go
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrie30 committed Jun 15, 2024
1 parent 0bbb10f commit c833571
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scm/bitbucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ func (_ Bitbucket) filter(resp []bitbucket.Repository) (repoData []Repo, err err
}

func insertAppPasswordCredentialsIntoURL(url string) string {
password := os.Getenv("GHORG_BITBUCKET_APP_PASSWORD")
credentials := ":" + password + "@"
credentials := ":" + os.Getenv("GHORG_BITBUCKET_APP_PASSWORD") + "@"
urlWithCredentials := strings.Replace(url, "@", credentials, 1)

return urlWithCredentials
Expand Down

0 comments on commit c833571

Please sign in to comment.