@@ -2,7 +2,6 @@ import * as core from '@actions/core';
22import * as gpg from './gpg' ;
33import * as openpgp from './openpgp' ;
44import * as stateHelper from './state-helper' ;
5- import * as exec from '@actions/exec' ;
65import os from 'os' ;
76
87async function run ( ) : Promise < void > {
@@ -18,7 +17,6 @@ async function run(): Promise<void> {
1817 }
1918
2019 core . info ( '📣 GnuPG info' ) ;
21- await exec . exec ( 'which' , [ 'gpg' ] ) ;
2220 const version = await gpg . getVersion ( ) ;
2321 const dirs = await gpg . getDirs ( ) ;
2422 core . info ( `Version : ${ version . gnupg } (libgcrypt ${ version . libgcrypt } )` ) ;
@@ -27,27 +25,27 @@ async function run(): Promise<void> {
2725 core . info ( `Datadir : ${ dirs . datadir } ` ) ;
2826 core . info ( `Homedir : ${ dirs . homedir } ` ) ;
2927
30- core . info ( '🔮 Checking signing key... ' ) ;
28+ core . info ( '🔮 Checking signing key' ) ;
3129 const privateKey = await openpgp . readPrivateKey ( process . env . SIGNING_KEY ) ;
3230 core . debug ( `Fingerprint : ${ privateKey . fingerprint } ` ) ;
3331 core . debug ( `KeyID : ${ privateKey . keyID } ` ) ;
3432 core . debug ( `UserID : ${ privateKey . userID } ` ) ;
3533 core . debug ( `CreationTime : ${ privateKey . creationTime } ` ) ;
3634
37- core . info ( '🔑 Importing secret key... ' ) ;
35+ core . info ( '🔑 Importing secret key' ) ;
3836 await gpg . importKey ( process . env . SIGNING_KEY ) . then ( stdout => {
3937 core . debug ( stdout ) ;
4038 } ) ;
4139
4240 if ( process . env . PASSPHRASE ) {
43- core . info ( '⚙️ Configuring GnuPG agent... ' ) ;
41+ core . info ( '⚙️ Configuring GnuPG agent' ) ;
4442 await gpg . configureAgent ( gpg . agentConfig ) ;
4543
46- core . info ( '📌 Getting keygrip... ' ) ;
44+ core . info ( '📌 Getting keygrip' ) ;
4745 const keygrip = await gpg . getKeygrip ( privateKey . fingerprint ) ;
4846 core . debug ( `${ keygrip } ` ) ;
4947
50- core . info ( '🔓 Preset passphrase... ' ) ;
48+ core . info ( '🔓 Preset passphrase' ) ;
5149 await gpg . presetPassphrase ( keygrip , process . env . PASSPHRASE ) . then ( stdout => {
5250 core . debug ( stdout ) ;
5351 } ) ;
@@ -63,7 +61,7 @@ async function cleanup(): Promise<void> {
6361 return ;
6462 }
6563 try {
66- core . info ( '🚿 Removing keys... ' ) ;
64+ core . info ( '🚿 Removing keys' ) ;
6765 const privateKey = await openpgp . readPrivateKey ( process . env . SIGNING_KEY ) ;
6866 await gpg . deleteKey ( privateKey . fingerprint ) ;
6967 } catch ( error ) {
0 commit comments