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: