Skip to content
This repository was archived by the owner on Oct 30, 2023. It is now read-only.

Commit 801eec7

Browse files
authored
fixed matching logic in addPluginCert if statement
1 parent 2f52319 commit 801eec7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function getDownloadPluginObject(name, version) {
159159
}
160160

161161
function addPluginCert(keyName,keyId){
162-
if (keyId.includes('kv.vault.azure.net')){
162+
if (keyId.includes('vault.azure.net')){
163163
const output = execSync(`notation key add --name ${keyName} --id ${keyId} --default --plugin azure-kv`, { encoding: 'utf-8' });
164164
console.log('notation cert output:\n', output);
165165
} // Add logic for additional Notation plugins here

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function getDownloadPluginObject(name, version) {
5555
}
5656

5757
function addPluginCert(keyName,keyId){
58-
if (keyId.includes('kv.vault.azure.net')){
58+
if (keyId.includes('vault.azure.net')){
5959
const output = execSync(`notation key add --name ${keyName} --id ${keyId} --default --plugin azure-kv`, { encoding: 'utf-8' });
6060
console.log('notation cert output:\n', output);
6161
} // Add logic for additional Notation plugins here

0 commit comments

Comments
 (0)