From 1d7ec38fd8fcd4fa0b522a1fc52d1b291baa8107 Mon Sep 17 00:00:00 2001 From: Jared Petersen Date: Sun, 3 May 2020 08:22:31 -0700 Subject: [PATCH] changed passhprase configuration to be more in line with docs --- README.md | 28 ++++++++-------------------- __tests__/auth.test.ts | 14 ++++---------- dist/index.js | Bin 170235 -> 170076 bytes src/auth.ts | 14 ++++---------- 4 files changed, 16 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index 43985c5d..8416a447 100644 --- a/README.md +++ b/README.md @@ -134,16 +134,10 @@ The two `settings.xml` files created from the above example look like the follow ${env.GITHUB_ACTOR} ${env.GITHUB_TOKEN} - - - - true - - - ${env.GPG_PASSPHRASE} - - - + + gpg.passphrase + ${env.GPG_PASSPHRASE} + ``` @@ -155,16 +149,10 @@ The two `settings.xml` files created from the above example look like the follow ${env.MAVEN_USERNAME} ${env.MAVEN_CENTRAL_TOKEN} - - - - true - - - ${env.MAVEN_GPG_PASSPHRASE} - - - + + gpg.passphrase + ${env.MAVEN_GPG_PASSPHRASE} + ``` diff --git a/__tests__/auth.test.ts b/__tests__/auth.test.ts index b8e3eac6..cb5f6595 100644 --- a/__tests__/auth.test.ts +++ b/__tests__/auth.test.ts @@ -157,17 +157,11 @@ describe('auth tests', () => { \${env.${username}} \${env.&<>"''"><&} + + gpg.passphrase + \${env.${gpgPassphrase}} + - - - - true - - - \${env.${gpgPassphrase}} - - - `); }); diff --git a/dist/index.js b/dist/index.js index c1018c00e67fc29a3e8dd2e95ab11cf5238d54d1..4ec5c6b4766b4d829eceacc3ff416f42e3353ff9 100644 GIT binary patch delta 73 zcmeypk?YO|u7)j)C8^UlrZ7s%rx&E_6(klH7i1JA7N^?iXQtS3DZqivblo&YgXxKB Wj3U!hQW<62*Q7CSUz5h\${env.${escapeXML(username)}} \${env.${escapeXML(password)}} + + gpg.passphrase + \${env.${escapeXML(gpgPassphrase)}} + - - - - true - - - \${env.${escapeXML(gpgPassphrase)}} - - - `; }