1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-12-28 17:18:24 +01:00

testing the env vars access

This commit is contained in:
Joseph Flinn 2020-12-31 16:28:44 +00:00
parent 725ce08e86
commit d4f6c07fc0

13
sign.js
View File

@ -1,12 +1,15 @@
exports.default = async function(configuration) {
console.log(`config:\n${JSON.stringify(configuration, null, 4)}`)
//console.log(`config:\n${JSON.stringify(configuration, null, 4)}`)
console.log(`env test - vault URL: ${process.env.SigningVaultURL}`)
require("child_process").execSync(
`azuresigntool sign \
-kvu "${process.env.SigningVaultURL}" \
-kvi "${process.env.SigningClientId}" \
-kvs "${process.env.SigningClientSecret}" \
-kvc "${process.env.SigningCertName}" \
-kvu ${process.env.SigningVaultURL} \
-kvi ${process.env.SigningClientId} \
-kvs ${process.env.SigningClientSecret} \
-kvc ${process.env.SigningCertName} \
-fd ${configuration.hash}
-du ${configuration.site}
-tr http://timestamp.digicert.com \
${configuration.path}`,
{