Skip to content

Commit c82f9c2

Browse files
committed
fixup! ci(sdk): add trivy scan vuln final step
1 parent 8e1e376 commit c82f9c2

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/sdk.yaml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,18 @@ jobs:
186186
while IFS= read -r image; do
187187
[ -z "$image" ] && continue
188188
echo "Scanning $image"
189-
trivy image \
190-
--scanners vuln \
191-
--severity HIGH,CRITICAL \
192-
--ignore-unfixed \
193-
--exit-code 1 \
194-
"$image"
189+
{
190+
echo "<details><summary><strong>Trivy image scan : ${{ matrix.target }} </strong></summary><pre lang="shell"><code>"
191+
192+
trivy image \
193+
--scanners vuln \
194+
--format table \
195+
--report summary \
196+
--severity HIGH,CRITICAL \
197+
--ignore-unfixed \
198+
--exit-code 1 \
199+
"$image"
200+
201+
echo "</code></pre></details><hr>"
202+
} >> $GITHUB_STEP_SUMMARY
195203
done <<< "${{ steps.images.outputs.images }}"

0 commit comments

Comments
 (0)