From df656bc10d6e6dd2d43fb1b43520a038aeff5940 Mon Sep 17 00:00:00 2001 From: brianlball Date: Mon, 3 Jul 2023 13:13:56 -0400 Subject: [PATCH] cleanup resources --- .github/workflows/security-scan.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/security-scan.yml b/.github/workflows/security-scan.yml index 41ff2fcef..e79b46776 100644 --- a/.github/workflows/security-scan.yml +++ b/.github/workflows/security-scan.yml @@ -44,6 +44,14 @@ jobs: OS_SERVER_NUMBER_OF_WORKERS: 4 BUILD_TYPE: docker COMPOSE_INTERACTIVE_NO_CLI: 1 + - name: Cleanup Docker resources and space + shell: bash + run: | + docker system prune -af + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc + sudo rm -rf "/usr/local/share/boost" + sudo rm -rf "$AGENT_TOOLSDIRECTORY" - name: Run docker vulnerability scanner uses: aquasecurity/trivy-action@master with: