I'm trying to set up a Heroku Pipeline for Salesforce DX as described in this example: https://github.com/wadewegner/salesforce-dx-pipeline-mdapi-sample.
The process works fine up until a pull request is created and the review app is created (Heroku runs a script which authenticates to my Dev Hub, creates a new Scratch org, and pushes the branch to it)
The Heroku log shows that the Scratch Org has been created:
Successfully created scratch org: 00D3D0000000o2bUAA, username: firstname.lastname@example.org
However, the Scratch Org is never listed when running the Salesforce DX CLI sfdx force:org:list command. The command will list all other orgs I've authenticated in the CLI, as well as Scratch Orgs created directly in the CLI, but never Scratch Orgs created from Heroku. Likewise the sfdx force:org:open command also fails with the new scratch org username:
sfdx force:org:open -u email@example.com ERROR: No org configuration found for name firstname.lastname@example.org.
Consequently, I cannot actually log into the review app Scratch Org. Have I overlooked something here? Appreciate any help!