Skip to content

Commit

Permalink
fix: support 403 allowlist (#595)
Browse files Browse the repository at this point in the history
* fix: support 403 allowlist

* chore: update config path for sf
  • Loading branch information
iowillhoit authored Sep 18, 2023
1 parent b871b56 commit 78d474e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ We always recommend using the latest version of these commands bundled with the

### Allowlisting

If a plugin needs to be installed in a unattended fashion as is the case with automation. The plugin acceptance prompt can be avoided by placing the plugin name in \$HOME/.config/sfdx/unsignedPluginAllowList.json
If a plugin needs to be installed in a unattended fashion as is the case with automation. The plugin acceptance prompt can be avoided by placing the plugin name in \$HOME/.config/sf/unsignedPluginAllowList.json

```json
[
Expand Down
2 changes: 1 addition & 1 deletion src/shared/installationVerification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ export async function doInstallationCodeSigningVerification(
verificationConfig.log(`Successfully validated digital signature for ${plugin.plugin}.`);
} catch (err) {
if (err instanceof Error) {
if (err.name === 'NotSigned') {
if (err.name === 'NotSigned' || err.message === 'Response code 403 (Forbidden)') {
if (!verificationConfig.verifier) {
throw new Error('VerificationConfig.verifier is not set.');
}
Expand Down

0 comments on commit 78d474e

Please sign in to comment.