Skip to content

Commit

Permalink
feat: fix COMPOSER_AUTH env forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Dec 12, 2024
1 parent 9fbe4e0 commit 7ca5c39
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/project/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,15 +242,14 @@ type ComposerAuth struct {

func prepareComposerAuth(ctx context.Context) (string, error) {
composerToken := os.Getenv("SHOPWARE_PACKAGES_TOKEN")
composerAuth := os.Getenv("COMPOSER_AUTH")

if composerToken == "" {
return "", nil
return composerAuth, nil
}

logging.FromContext(ctx).Infof("Setting up composer auth for packages.shopware.com")

composerAuth := os.Getenv("COMPOSER_AUTH")

var auth ComposerAuth

if composerAuth == "" {
Expand Down

0 comments on commit 7ca5c39

Please # to comment.