Skip to content

Commit e3db678

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

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 4 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,9 +259,10 @@ 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

0 commit comments

Comments
 (0)