From 11b1c58b24724e66aa52a847862a0c1b0c4b0c7b Mon Sep 17 00:00:00 2001 From: Tom Keller <1083460+kellertk@users.noreply.github.com> Date: Fri, 3 Apr 2026 15:00:34 -0700 Subject: [PATCH] feat: add skip cleanup option (#1716) Closes #1545 --- README.md | 10 ++++++++++ action.yml | 1 + 2 files changed, 11 insertions(+) diff --git a/README.md b/README.md index 244c0d3..b353d4d 100644 --- a/README.md +++ b/README.md @@ -172,6 +172,16 @@ Sometimes, existing credentials in your runner can get in the way of the intended outcome. You can set the `unset-current-credentials` input to `true` to work around this issue. +#### Skip the cleanup step +By default, this action runs a post-job cleanup step that removes credentials +from the environment. To skip this step, set the `AWS_SKIP_CLEANUP_STEP` +environment variable to `true`: + +```yaml + env: + AWS_SKIP_CLEANUP_STEP: 'true' +``` + #### Use an HTTP proxy If need use an HTTP proxy you can set it in the action manually. Additionally diff --git a/action.yml b/action.yml index c781b4a..cdba191 100644 --- a/action.yml +++ b/action.yml @@ -5,6 +5,7 @@ runs: using: node24 main: dist/index.js post: dist/cleanup/index.js + post-if: env.AWS_SKIP_CLEANUP_STEP != 'true' branding: color: orange icon: cloud