Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Build error: plugin salesforcedx is not digitally signed #53

Closed
pozil opened this issue Jan 20, 2018 · 4 comments
Closed

Build error: plugin salesforcedx is not digitally signed #53

pozil opened this issue Jan 20, 2018 · 4 comments
Labels

Comments

@pozil
Copy link

pozil commented Jan 20, 2018

While building my CI with Travis I got an error while installing Salesforce DX and I just noticed that this repository is also impacted by it (build is failing at time of writing).

When running sfdx plugins:install salesforcedxthe CLI will output a blocking prompt which breaks CI:

Installing plugin salesforcedx... Checking for digital signature.
This plugin is not digitally signed and its authenticity cannot be verified. Continue installation y/n?: 

I am bit surprised that this official plugin is not signed so perhaps it's a bug in the plugin build chain.

Here is how I fixed it based on the official DX doc:

  1. Create a plugin whitelist file named unsignedPluginWhiteList.json in the config directory with the following content:
[
    "salesforcedx"
]
  1. Move the whitelist file in a specific directory before running the plugin install command:
    mv config/unsignedPluginWhiteList.json $HOME/.config/sfdx/.

I hope that it helps.

@amphro
Copy link
Collaborator

amphro commented Jan 21, 2018

Hey @pozil - confirmed the issue. We will work on resolving this. On a side note, you shouldn't need to install salesforcedx as it is now bundled with the CLI. If you comment out that line in your CI, you can still run force commands and see the plugin version with sfdx plugins --core. The only reason to install the plugin is if you need to hardcode to a specific version.

@pozil
Copy link
Author

pozil commented Jan 21, 2018

Thx @amphro for confirming this.
I must admit that I did a copy paste from this repo so you might want to remove plugins:install salesforcedx from .travis.yml.

@amphro
Copy link
Collaborator

amphro commented Jan 21, 2018

Yeah, I just talked to @esalman-sfdc about that. Thanks for the suggestion!

@esalman-sfdc
Copy link
Contributor

Thanks @pozil for the heads up. I have updated the CI configs used by this repository.

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

3 participants