From ac8d515136bf66c7c1081d11f67258017ea78ce0 Mon Sep 17 00:00:00 2001 From: Karl Rister Date: Wed, 7 Aug 2024 21:02:43 -0500 Subject: [PATCH] update the self-hosted runner's hooks to cleanup the quay oauth token --- .../runners/self-hosted/actions-runner-hooks/job-completed.sh | 1 + .github/runners/self-hosted/actions-runner-hooks/job-started.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/runners/self-hosted/actions-runner-hooks/job-completed.sh b/.github/runners/self-hosted/actions-runner-hooks/job-completed.sh index 90cf730..e56830a 100755 --- a/.github/runners/self-hosted/actions-runner-hooks/job-completed.sh +++ b/.github/runners/self-hosted/actions-runner-hooks/job-completed.sh @@ -5,6 +5,7 @@ sudo podman system reset --force echo "Cleaning up registry authorization tokens..." sudo find /root -name 'crucible-*-engines-token.json' -print -delete +sudo find /root -name 'quay-oauth.token' -print -delete echo "...cleanup complete" # cleanup the workspace diff --git a/.github/runners/self-hosted/actions-runner-hooks/job-started.sh b/.github/runners/self-hosted/actions-runner-hooks/job-started.sh index f75c534..7a364e2 100755 --- a/.github/runners/self-hosted/actions-runner-hooks/job-started.sh +++ b/.github/runners/self-hosted/actions-runner-hooks/job-started.sh @@ -5,6 +5,7 @@ sudo podman system reset --force echo "Cleaning up registry authorization tokens..." sudo find /root -name 'crucible-*-engines-token.json' -print -delete +sudo find /root -name 'quay-oauth.token' -print -delete echo "...cleanup complete" # cleanup the workspace