From 392906c2d361e84acf4bcb2864b50966a6cb9a44 Mon Sep 17 00:00:00 2001 From: tefirman Date: Fri, 18 Oct 2024 23:35:43 -0700 Subject: [PATCH] Testing out Docker Scout if statement --- .github/workflows/docker-scout.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-scout.yaml b/.github/workflows/docker-scout.yaml index 6c8cc31..ac74953 100644 --- a/.github/workflows/docker-scout.yaml +++ b/.github/workflows/docker-scout.yaml @@ -10,13 +10,13 @@ permissions: jobs: scout: runs-on: ubuntu-latest - container: - image: docker/scout-cli + # container: + # image: docker/scout-cli steps: - name: Checkout uses: actions/checkout@v4 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + # - name: Set up Docker Buildx + # uses: docker/setup-buildx-action@v3 - name: Login to DockerHub Container Registry uses: docker/login-action@v3 with: @@ -27,6 +27,10 @@ jobs: # docker scout cves bwa-test --only-fixed --format markdown | gh issue create --repo getwilds/wilds-docker-library --title "bwa CVE Analysis" --body-file - # docker scout cves getwilds/gatk:latest --only-fixed --format sarif --output test.json \ # && jq '.runs[0].tool.driver.rules | length' test.json + - name: Install Docker Scout + run: | + curl -fsSL https://raw.githubusercontent.com/docker/scout-cli/main/install.sh -o install-scout.sh + sh install-scout.sh - name: Docker Scout run: | if [[ $(docker scout cves getwilds/gatk:latest --only-fixed --format sarif --output test.json \