Skip to content

Commit c88f2bf

Browse files
committed
Attempt to fix CI
1 parent 4361b30 commit c88f2bf

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ jobs:
100100
echo "Files in current directory:"
101101
ls -la
102102
govulncheck -format=sarif ./... > govulncheck-results.sarif
103-
103+
104104
govulncheck -json ./... > vuln.json
105105
count=$(jq '[.[] | select(.finding != null and .finding.trace != null)] | length' vuln.json || echo 0)
106106
echo "Found $count vulnerabilities"
107-
107+
108108
if [ "$count" -gt 0 ]; then
109109
echo "⚠️ Vulnerabilities found by govulncheck (see Security tab for details)"
110110
else
@@ -259,17 +259,18 @@ jobs:
259259
run: |
260260
curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b /usr/local/bin
261261
262-
- name: Scan SBOM with Grype
262+
# Keep SBOM generation & artifact upload as-is (no SARIF upload from SBOM)
263+
- name: Grype SARIF (directory scan)
263264
run: |
264-
grype sbom.spdx.json -o sarif --file grype-results.sarif
265+
grype dir:. -o sarif --file grype-results.sarif
265266
continue-on-error: true
266267

267268
- name: Upload Grype results to GitHub Security tab
268269
uses: github/codeql-action/upload-sarif@v3
269270
if: always()
270271
with:
271272
sarif_file: grype-results.sarif
272-
category: grype
273+
category: grype-dir
273274

274275
- name: Display SBOM summary
275276
run: |

0 commit comments

Comments
 (0)