Skip to content

Commit 258d730

Browse files
peppescgclaude
andauthored
chore: add grype config and fix transitive vulnerabilities (#450)
Add .grype.yaml with exclusion rules for build artifacts and test output, and resolve 6 Grype findings via pnpm overrides (kysely, picomatch, qs, yaml). Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4ba9304 commit 258d730

4 files changed

Lines changed: 103 additions & 81 deletions

File tree

.github/workflows/security-checks.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
with:
2222
path: "."
2323
fail-build: true
24-
only-fixed: true
2524
severity-cutoff: "medium"
2625
output-format: "table"
2726

.grype.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# SPDX-FileCopyrightText: Copyright 2025 Stacklok, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
#
4+
# Grype configuration for toolhive-cloud-ui.
5+
# - node_modules/: lock file is the source of truth; scanning installed packages is redundant.
6+
# - dist/, out/: build artifacts produced by Next.js.
7+
# - .next/: Next.js build output cache.
8+
# - .cache/: build-tool caches, not source packages.
9+
# - coverage/, playwright-report/, test-results/, test-videos/: test output, not source packages.
10+
11+
# Only report vulnerabilities that have a fix available — unfixed ones are noise with no actionable remedy.
12+
only-fixed: true
13+
14+
exclude:
15+
- '**/node_modules/**'
16+
- '**/dist/**'
17+
- '**/out/**'
18+
- '**/.next/**'
19+
- '**/coverage/**'
20+
- '**/playwright-report/**'
21+
- '**/test-results/**'
22+
- '**/test-videos/**'
23+
- '**/.cache/**'

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,11 @@
118118
"lodash-es": ">=4.17.23",
119119
"hono": "4.12.8",
120120
"rollup": ">=4.59.0",
121-
"undici": "7.24.4"
121+
"undici": "7.24.4",
122+
"kysely": ">=0.28.14",
123+
"picomatch": ">=4.0.4",
124+
"qs": ">=6.14.2",
125+
"yaml": ">=2.8.3"
122126
}
123127
}
124128
}

0 commit comments

Comments
 (0)