mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-03 07:26:00 +00:00
fix: secret reference skip if not found
This commit is contained in:
@@ -444,7 +444,9 @@ export const expandSecretReferencesFactory = ({
|
|||||||
depth: depth + 1
|
depth: depth + 1
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
expandedValue = expandedValue.replaceAll(interpolationSyntax, referedValue);
|
if (referedValue) {
|
||||||
|
expandedValue = expandedValue.replaceAll(interpolationSyntax, referedValue);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
const secretReferenceEnvironment = entities[0];
|
const secretReferenceEnvironment = entities[0];
|
||||||
const secretReferencePath = path.join("/", ...entities.slice(1, entities.length - 1));
|
const secretReferencePath = path.join("/", ...entities.slice(1, entities.length - 1));
|
||||||
@@ -463,7 +465,9 @@ export const expandSecretReferencesFactory = ({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
expandedValue = expandedValue.replaceAll(interpolationSyntax, referedValue);
|
if (referedValue) {
|
||||||
|
expandedValue = expandedValue.replaceAll(interpolationSyntax, referedValue);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user