From ac96d40ce85002e7ce301633ef5b9af4cd797bba Mon Sep 17 00:00:00 2001 From: chensuyue Date: Fri, 30 Aug 2024 14:47:00 +0800 Subject: [PATCH] clean up test env Signed-off-by: chensuyue --- .github/workflows/manual-docker-scan.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/manual-docker-scan.yml b/.github/workflows/manual-docker-scan.yml index 11a13f84d5..6f2501c550 100644 --- a/.github/workflows/manual-docker-scan.yml +++ b/.github/workflows/manual-docker-scan.yml @@ -79,6 +79,11 @@ jobs: image: ${{ fromJson(needs.get-image-list.outputs.matrix) }} fail-fast: false steps: + - name: Clean up Working Directory + run: | + sudo rm -rf ${{github.workspace}}/* || true + docker system prune -f + - name: Pull Image run: | docker pull ${OPEA_IMAGE_REPO}opea/${{ matrix.image }}:${{ inputs.tag }} @@ -113,11 +118,11 @@ jobs: with: name: sbom-scan path: ${{ matrix.image }}-sbom-scan.txt - overwrite: true + overwrite: false - uses: actions/upload-artifact@v4.3.4 if: always() with: name: trivy-scan path: ${{ matrix.image }}-trivy-scan.txt - overwrite: true + overwrite: false