From eb31057c640406aa3dd7c5856de4fff64445c0c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gurhem?= Date: Wed, 23 Oct 2024 10:46:44 +0200 Subject: [PATCH 1/2] fix: use valid format to put in github output --- .github/workflows/scout-cron.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scout-cron.yml b/.github/workflows/scout-cron.yml index bf5bec87d..a51846443 100644 --- a/.github/workflows/scout-cron.yml +++ b/.github/workflows/scout-cron.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 - name: List last releases id: releases - run: echo "releases:$(gh release list -L 3 --json tagName -q '[ .[].tagName ]')" >> "$GITHUB_OUTPUT" + run: echo "releases=$(gh release list -L 3 --json tagName -q '[ .[].tagName ]')" >> "$GITHUB_OUTPUT" env: GH_TOKEN: ${{ github.token }} From dc0cc95af051319144fe4ffce53440037b75237a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gurhem?= Date: Wed, 23 Oct 2024 17:29:58 +0200 Subject: [PATCH 2/2] fix: use version --- .github/workflows/scout-cron.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/scout-cron.yml b/.github/workflows/scout-cron.yml index a51846443..4b5f3818d 100644 --- a/.github/workflows/scout-cron.yml +++ b/.github/workflows/scout-cron.yml @@ -46,9 +46,9 @@ jobs: uses: docker/scout-action@e1c0d589b972d5605e035bbf74ed95cfc306d597 # v1 with: command: cves - image: "${{ matrix.image }}:${{ matrix.image }}" - sarif-file: "${{ matrix.image }}_${{ matrix.image }}.sarif.json" + image: "${{ matrix.image }}:${{ matrix.version }}" + sarif-file: "${{ matrix.image }}_${{ matrix.version }}.sarif.json" summary: true platform: linux/arm64,linux/amd64,windows/amd64 - name: print sarif file - run: cat "${{ matrix.image }}_${{ matrix.image }}.sarif.json" + run: cat "${{ matrix.image }}_${{ matrix.version }}.sarif.json"