CircleCI-Public / Salesforce-sfdx-cli-orb

MIT License
5 stars 14 forks source link

SFFDX install url is returning AccessDenied #24

Open brbjr1 opened 2 years ago

brbjr1 commented 2 years ago

Orb Version 2.2.0

Describe the bug Salesforce updated the install URL for sfdx from https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz to https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable/sfdx-linux-x64.tar.xz

if you try and access the URL https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz you will get an access denied error. A workaround is to specify an install version and the orb will use npm to install it.

To Reproduce

Steps to reproduce the behavior:

  1. Run a build without specifying an sfdx parameter version

Expected behavior

SFDX install step should be successful

ttomaszewski commented 2 years ago

We are seeing this issue also. Started yesterday evening.

Nickz22 commented 2 years ago

In the interim, this config.yml workaround is working for me (you'll need node orb):

test_apex_and_deploy:
    executor: sfdx/default
    steps:
      - checkout
      - run: 
          command: |
            npm install --global sfdx-cli
          name: Install SFDX
      - run:
          command: |
            bash src/.sfdx/tools/scripts/actionhandler.sh
          name: Bash Scripting
          no_output_timeout: 2h
agentfrench commented 2 years ago

I think I might have got something working on my latest attempt on #22 .

Another workaround is to add version parameter so that the orb uses NPM instead of downloading the binaries from salesforce. Add version: "latest" under sfdx/install step.

image