From ee885cc34ce1636b084a54622ba04ba1e026d1c0 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sun, 3 May 2020 21:17:25 +0200 Subject: [PATCH] Check private key deletion --- .github/workflows/ci.yml | 1 - dist/index.js | 3 ++- src/main.ts | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4aa76ea..7e3b2dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,5 +24,4 @@ jobs: name: Import GPG key uses: ./ env: - ACTIONS_STEP_DEBUG: ${{ secrets.ACTIONS_STEP_DEBUG }} SIGNING_KEY: ${{ secrets.SIGNING_KEY_TEST }} diff --git a/dist/index.js b/dist/index.js index f15bdd3..93483af 100644 --- a/dist/index.js +++ b/dist/index.js @@ -126,7 +126,7 @@ function run() { core.debug(`key.fingerprint=${privateKey.fingerprint}`); core.debug(`key.keyID=${privateKey.keyID}`); core.debug(`key.userID=${privateKey.userID}`); - core.debug(`key.creationTime: ${privateKey.creationTime}`); + core.debug(`key.creationTime=${privateKey.creationTime}`); core.info('🔑 Importing secret key...'); yield gpg_1.importKey(process.env.SIGNING_KEY); } @@ -138,6 +138,7 @@ function run() { function cleanup() { return __awaiter(this, void 0, void 0, function* () { if (!privateKey) { + core.debug('Private key is not defined. Skipping cleanup.'); return; } try { diff --git a/src/main.ts b/src/main.ts index a2ca9cb..eea3645 100644 --- a/src/main.ts +++ b/src/main.ts @@ -20,7 +20,7 @@ async function run(): Promise { core.debug(`key.fingerprint=${privateKey.fingerprint}`); core.debug(`key.keyID=${privateKey.keyID}`); core.debug(`key.userID=${privateKey.userID}`); - core.debug(`key.creationTime: ${privateKey.creationTime}`); + core.debug(`key.creationTime=${privateKey.creationTime}`); core.info('🔑 Importing secret key...'); await importKey(process.env.SIGNING_KEY); @@ -31,6 +31,7 @@ async function run(): Promise { async function cleanup(): Promise { if (!privateKey) { + core.debug('Private key is not defined. Skipping cleanup.'); return; } try {