From b8aa4efcaa409d915b1716193cc48a985a8181db Mon Sep 17 00:00:00 2001 From: agondo69 Date: Wed, 8 Jan 2025 12:48:59 -0500 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f97afbfe5..a1d6ddb1e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,28 +26,39 @@ jobs: uses: actions/upload-artifact@v3 if: always() with: - name: Bandit vulnerability findings - path: bandit-report.json + name: Bandit vulnerability findings + path: bandit-report.json dockerimage_scan: - name: Build our image and run a scan on it - runs-on: ubuntu-latest + name: Build our image and run a scan on it + runs-on: ubuntu-latest - steps: + steps: - name: Checkout code uses: actions/checkout@v2 - name: Set up our docker uses: docker-practice/actions-setup-docker@v1 with: - docker_version: '20.10' + docker_version: '20.10' + + - name: Set up Docker daemon configuration + run: | + echo '{ + "hosts": ["unix:///var/run/docker.sock"], + "live-restore": true + }' | sudo tee /etc/docker/daemon.json + # Ensure Docker is restarted to apply configuration + - name: Restart Docker + run: | + sudo systemctl restart docker - name: Build the image run: docker build -f Dockerfile -t agapp:latest . - name: Docker Scout Scan image run: | - curl -fsSL https://raw.githubusercontent.com/docker/scout-cli/main/install.sh -o install-scout.sh - sh install-scout.sh - docker scout quickview - docker scout cves + curl -fsSL https://raw.githubusercontent.com/docker/scout-cli/main/install.sh -o install-scout.sh + sh install-scout.sh + docker scout quickview + docker scout cves