diff --git a/src/main.ts b/src/main.ts index 45d9668..bf57647 100644 --- a/src/main.ts +++ b/src/main.ts @@ -230,7 +230,7 @@ actionsToolkit.run( await core.group(`Removing temp folder ${stateHelper.tmpDir}`, async () => { try { fs.rmSync(stateHelper.tmpDir, {recursive: true}); - } catch (e) { + } catch { core.warning(`Failed to remove temp folder ${stateHelper.tmpDir}`); } }); diff --git a/src/state-helper.ts b/src/state-helper.ts index dbbcfc7..88dac0c 100644 --- a/src/state-helper.ts +++ b/src/state-helper.ts @@ -52,7 +52,7 @@ export function setSummaryInputs(inputs: Inputs) { // eslint-disable-next-line @typescript-eslint/no-unused-vars const [skey, _] = Build.parseSecretKvp(secret, true); secretKeys.push(skey); - } catch (err) { + } catch { // ignore invalid secret } }