Skip to content

Commit 24ca209

Browse files
committed
Only report critical issues
Because there are high severity issue that have been reported since decades with no resolution: E.g. https://ubuntu.com/security/CVE-2013-7445#notes https://bugzilla.kernel.org/show_bug.cgi?id=60533 Signed-off-by: Dimitris Karakasilis <[email protected]>
1 parent 5325ef8 commit 24ca209

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

.github/workflows/release.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,13 @@ jobs:
212212
with:
213213
input: trivy-results/result.sarif
214214
output: trivy-results/result.sarif
215-
severity: high
215+
severity: critical
216216
- uses: itxaka/sarif-filter@v1
217217
if: startsWith(github.ref, 'refs/tags/')
218218
with:
219219
input: grype-results/result.sarif
220220
output: grype-results/result.sarif
221-
severity: high
221+
severity: critical
222222
- name: Release
223223
uses: softprops/action-gh-release@01570a1f39cb168c169c802c3bceb9e93fb10974 # v2.1.0
224224
if: startsWith(github.ref, 'refs/tags/')

.github/workflows/reusable-build-flavor.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -148,26 +148,26 @@ jobs:
148148
with:
149149
input: trivy-results/result.sarif
150150
output: trivy-results/result.sarif
151-
severity: high
151+
severity: critical
152152
- uses: itxaka/sarif-filter@v1
153153
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
154154
with:
155155
input: grype-results/result.sarif
156156
output: grype-results/result.sarif
157-
severity: high
157+
severity: critical
158158
- name: Check scan results
159159
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
160160
continue-on-error: true
161161
run: |
162162
result=$(cat grype-results/result.sarif | jq '.runs[0].results | length')
163163
if (( result > 0 )); then
164-
echo "Critical or high severity issues found in Grype scan"
164+
echo "Critical severity issues found in Grype scan"
165165
exit 1
166166
fi
167167
168168
result=$(cat trivy-results/result.sarif | jq '.runs[0].results | length')
169169
if (( result > 0 )); then
170-
echo "Critical or high severity issues found in Trivy scan"
170+
echo "Critical severity issues found in Trivy scan"
171171
exit 1
172172
fi
173173
- name: Upload Trivy scan results to GitHub Security tab

.github/workflows/reusable-docker-arm-build.yaml

+10-2
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,13 @@ jobs:
188188
with:
189189
input: trivy.sarif
190190
output: trivy.sarif
191-
severity: high
191+
severity: critical
192192
- uses: itxaka/sarif-filter@v1
193193
if: startsWith(github.ref, 'refs/tags/')
194194
with:
195195
input: grype.sarif
196196
output: grype.sarif
197-
severity: high
197+
severity: critical
198198
- name: Upload Trivy scan results to GitHub Security tab
199199
uses: github/codeql-action/upload-sarif@v3
200200
if: startsWith(github.ref, 'refs/tags/')
@@ -207,3 +207,11 @@ jobs:
207207
with:
208208
sarif_file: 'grype.sarif'
209209
category: ${{ matrix.flavor }}-${{ inputs.flavor_release }}-${{ inputs.variant }}-arm64-${{ inputs.model }}
210+
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
211+
if: startsWith(github.ref, 'refs/tags/')
212+
with:
213+
name: ${{ matrix.flavor }}-${{ inputs.flavor_release }}-${{ inputs.variant }}-arm64-${{ inputs.model }}-scan-results
214+
path: |
215+
trivy.sarif
216+
grype.sarif
217+
if-no-files-found: error

0 commit comments

Comments
 (0)