From 495b19f076cc68bad40f860b6ab60328293bd064 Mon Sep 17 00:00:00 2001 From: rajith Date: Thu, 26 Sep 2024 17:14:41 +0530 Subject: [PATCH] fix log file and upload to artifact --- .github/workflows/docker-bench-security.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-bench-security.yml b/.github/workflows/docker-bench-security.yml index 4f6eba7c9b..8e04dc61d7 100644 --- a/.github/workflows/docker-bench-security.yml +++ b/.github/workflows/docker-bench-security.yml @@ -35,9 +35,11 @@ jobs: -v /var/lib:/var/lib:ro \ -v /var/run/docker.sock:/var/run/docker.sock:ro \ --label docker_bench_security \ - docker/docker-bench-security > results/docker-bench-report.txt + docker/docker-bench-security -l results/docker-bench-security.log -o json - name: Upload Results uses: actions/upload-artifact@v3 with: name: docker-bench-results - path: results/docker-bench-results.txt \ No newline at end of file + path: | + results/docker-bench-security.log + results/docker-bench-security.log.json \ No newline at end of file