From fa9fe2c5c18cb2b04fcbd21b5c3e8f6056680cf3 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 21 Dec 2024 16:51:10 +0100 Subject: [PATCH] fix docker scout environment --- .github/workflows/release_branch.yml | 3 ++- .github/workflows/release_stable.yml | 6 ++++-- .github/workflows/release_testing.yml | 3 ++- .github/workflows/release_unstable.yml | 3 ++- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release_branch.yml b/.github/workflows/release_branch.yml index 41b6db0..815c823 100644 --- a/.github/workflows/release_branch.yml +++ b/.github/workflows/release_branch.yml @@ -63,8 +63,9 @@ jobs: id: docker-scout uses: docker/scout-action@v1.16.1 with: - command: quickview,cves,recommendations + command: environment,quickview,cves,recommendations image: ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:${{ github.ref_name }} + environment: stable write-comment: true github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release_stable.yml b/.github/workflows/release_stable.yml index 5b6382b..1c78b47 100644 --- a/.github/workflows/release_stable.yml +++ b/.github/workflows/release_stable.yml @@ -148,8 +148,9 @@ jobs: id: docker-scout uses: docker/scout-action@v1.16.1 with: - command: quickview,cves,recommendations + command: environment,quickview,cves,recommendations image: ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:${{ needs.check_image.outputs.version }} + environment: stable write-comment: true github-token: ${{ secrets.GITHUB_TOKEN }} @@ -157,8 +158,9 @@ jobs: id: docker-scout uses: docker/scout-action@v1.16.1 with: - command: quickview,cves,recommendations + command: environment,quickview,cves,recommendations image: ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:latest + environment: latest write-comment: true github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release_testing.yml b/.github/workflows/release_testing.yml index 40bd1ce..4fd8ca8 100644 --- a/.github/workflows/release_testing.yml +++ b/.github/workflows/release_testing.yml @@ -96,8 +96,9 @@ jobs: id: docker-scout uses: docker/scout-action@v1.16.1 with: - command: quickview,cves,recommendations + command: environment,quickview,cves,recommendations image: ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:${{ env.DOTCLEAR_CANAL }} + environment: testing write-comment: true github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release_unstable.yml b/.github/workflows/release_unstable.yml index 43abbea..b75df15 100644 --- a/.github/workflows/release_unstable.yml +++ b/.github/workflows/release_unstable.yml @@ -63,8 +63,9 @@ jobs: id: docker-scout uses: docker/scout-action@v1.16.1 with: - command: quickview,cves,recommendations + command: environment,quickview,cves,recommendations image: ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:dev + environment: unstable write-comment: true github-token: ${{ secrets.GITHUB_TOKEN }}