@node-core/utils 5.16.1 → 5.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/config.js CHANGED
@@ -29,6 +29,7 @@ export function getConfig(configType, dir) {
29
29
  const configPath = getConfigPath(configType, dir);
30
30
  const encryptedConfigPath = configPath + '.gpg';
31
31
  if (existsSync(encryptedConfigPath)) {
32
+ console.warn('Encrypted config detected, spawning gpg to decrypt it...');
32
33
  const { status, stdout } =
33
34
  spawnSync('gpg', ['--decrypt', encryptedConfigPath]);
34
35
  if (status === 0) {
@@ -196,7 +196,7 @@ export default class ReleasePromotion extends Session {
196
196
 
197
197
  async verifyTagSignature(version) {
198
198
  const { cli } = this;
199
- const verifyTagPattern = /gpg:[^\n]+\ngpg:\s+using RSA key ([^\n]+)\ngpg:\s+issuer "([^"]+)"\ngpg:\s+Good signature from "([^<]+) <\2>"/;
199
+ const verifyTagPattern = /gpg:[^\n]+\ngpg:\s+using \w+ key ([^\n]+)\ngpg:\s+issuer "([^"]+)"\ngpg:\s+Good signature from (?:"[^"]+"(?: \[ultimate\])?\ngpg:\s+aka )*"([^<]+) <\2>"/;
200
200
  const [verifyTagOutput, haystack] = await Promise.all([forceRunAsync(
201
201
  'git', ['--no-pager',
202
202
  'verify-tag',