From 5cf9dfe32e3b1b6bf8845af9cdc1eed76c6ec650 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 21 Dec 2024 16:45:27 +0100 Subject: [PATCH] integrate docker scout --- .github/workflows/release_branch.yml | 9 +++++++++ .github/workflows/release_stable.yml | 18 ++++++++++++++++++ .github/workflows/release_testing.yml | 9 +++++++++ .github/workflows/release_unstable.yml | 3 ++- 4 files changed, 38 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release_branch.yml b/.github/workflows/release_branch.yml index d4c856c..41b6db0 100644 --- a/.github/workflows/release_branch.yml +++ b/.github/workflows/release_branch.yml @@ -59,6 +59,15 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max + - name: Docker Scout + id: docker-scout + uses: docker/scout-action@v1.16.1 + with: + command: quickview,cves,recommendations + image: ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:${{ github.ref_name }} + write-comment: true + github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Send Telegram Message Ok uses: appleboy/telegram-action@master env: diff --git a/.github/workflows/release_stable.yml b/.github/workflows/release_stable.yml index 9ada88b..5b6382b 100644 --- a/.github/workflows/release_stable.yml +++ b/.github/workflows/release_stable.yml @@ -144,6 +144,24 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max + - name: Docker Scout + id: docker-scout + uses: docker/scout-action@v1.16.1 + with: + command: quickview,cves,recommendations + image: ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:${{ needs.check_image.outputs.version }} + write-comment: true + github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Docker Scout + id: docker-scout + uses: docker/scout-action@v1.16.1 + with: + command: quickview,cves,recommendations + image: ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:latest + write-comment: true + github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Send Telegram Message Ok uses: appleboy/telegram-action@master env: diff --git a/.github/workflows/release_testing.yml b/.github/workflows/release_testing.yml index c85ec67..40bd1ce 100644 --- a/.github/workflows/release_testing.yml +++ b/.github/workflows/release_testing.yml @@ -92,6 +92,15 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max + - name: Docker Scout + id: docker-scout + uses: docker/scout-action@v1.16.1 + with: + command: quickview,cves,recommendations + image: ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:${{ env.DOTCLEAR_CANAL }} + write-comment: true + github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Send Telegram Message Ok uses: appleboy/telegram-action@master env: diff --git a/.github/workflows/release_unstable.yml b/.github/workflows/release_unstable.yml index f8912c7..43abbea 100644 --- a/.github/workflows/release_unstable.yml +++ b/.github/workflows/release_unstable.yml @@ -63,7 +63,8 @@ jobs: id: docker-scout uses: docker/scout-action@v1.16.1 with: - command: quickview,recommendations + command: quickview,cves,recommendations + image: ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:dev write-comment: true github-token: ${{ secrets.GITHUB_TOKEN }}