Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Error in GitHub Workflow: sfpowerscripts Orchestrator:Prepare with auth:accesstoken:store #1438

Closed
GiladKW opened this issue Nov 10, 2023 · 4 comments
Labels

Comments

@GiladKW
Copy link

GiladKW commented Nov 10, 2023

Description
I am attempting to run the sfpowerscripts orchestrator:prepare command within a github workflow. Even though the authentication method used is auth:accesstoken:store, the following error is thrown:

    Error: Unable to execute command .. Error: Pools have to be created using 
    a DevHub authenticated with auth:web or auth:store or 
    auth:accesstoken:store

Steps To Reproduce

  • Authenticate using JWT with sfdx auth:jwt:grant.

  • Extract AccessToken using sfdx force:org:display.

  • Deauthenticate/remove the JWT auth configuration [sfdx auth:logout, rm -f ~/.sfdx/*.json].

  • Authenticate using the extracted AccessToken with sfdx auth:accesstoken:store.

  • Run the sfpowerscripts orchestrator:prepare command

Platform Details (please complete the following information):

  • OS: Ubuntu 22.04.3
  • Salesforce CLI(sfdx cli) Version: @salesforce/cli/2.14.6 linux-x64 node-v18.18.2
  • CI Platform: Github
@github-actions github-actions bot added the analysis To be decided on how to solution/fix label Nov 10, 2023
@rygramer
Copy link

@GiladKW the error message is misleading. dx@scale does not support the jwt login flow. There's a convo about it here: https://flxbl-io.slack.com/archives/CN9N54GF5/p1693248029499739

@fransf-wtax
Copy link

@rygramer How do we get access to this Slack workspace? Thanks!

@rygramer
Copy link

https://launchpass.com/flxblio 😁

@azlam-abdulsalam azlam-abdulsalam added q&a and removed analysis To be decided on how to solution/fix labels Jan 17, 2024
@azlam-abdulsalam
Copy link
Contributor

Closing this one as its invalid

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants