Skip to main content

I am trying to run robot tests in github action with persistent org. I have done all the setup as mentioned in cumulusci documentation. But I am still getting below error 

Error: ('Could not deserialize key data. The data may be in an incorrect format,it may be encrypted with an unsupported algorithm, or it may be an unsupported key type (e.g. EC curves with explicit parameters).', [_OpenSSLErrorWithText(code=75497580, lib=9, reason=108, 

reason_text=b'error:0480006C:PEM routines::no start line')])"

 

GITHUB:

Environment Varialbles:

 CUMULUSCI_KEYCHAIN_CLASS: cumulusci.core.keychain.EnvironmentProjectKeychain

 CUMULUSCI_ORG_auto_admin: ${{ secrets.AUTO_ADMIN_EMAIL }}

 CUMULUSCI_ORG_lead_agent: ${{ secrets.LEAD_AGENT_EMAIL }}

 SFDX_CLIENT_ID: ${{ secrets.CLIENT_ID }}

 SFDX_HUB_KEY: ${{ secrets.SERVER_KEY }}

 

Cumulusci Commands:

cci task run robot --org auto_admin

 

CLIENT_ID = consumer key of connected app

SERVER_KEY= contents of server.key file

Please refer attached attached screenshot for error message 

#Trailhead Challenges #Trailhead #Certifications #Salesforce Developer #TrailblazerCommunity #Automation #Github #CumulusCI

Unable to run robot tasks in Github actions with CumulusCI

3 Antworten
  1. 16. Juni 2023, 08:51

    Hi ,

     

    Change:

    request.setEndpoint('https://ap5.salesforce.com/services/oauth2/token');

    to either Login or test depending on if in production or sandbox

    request.setEndpoint('https://[login | test].salesforce.com/services/oauth2/token');

    You also need to put the parameters in the body or as URL params and not header

    request.setBody(

    'grant_type=password' +

    '&client_id=xxxx' +

    '&client_secret=xx' +

    '&username=xx' +

    '&password=xx'

    );

     https://salesforce.stackexchange.com/questions/172980/errorunsupported-grant-type-error-descriptiongrant-type-not-supported

0/9000