Skip to content

Commit 9daca2e

Browse files
authored
fix(ci): suppress Trivy go-git vulnerability temporarily (#12405)
1 parent 3ca3a97 commit 9daca2e

6 files changed

Lines changed: 27 additions & 1 deletion

File tree

.github/workflows/api-container-checks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ jobs:
111111
with:
112112
files: |
113113
api/**
114+
.trivyignore.yaml
114115
.github/actions/trivy-scan/**
115116
.github/actions/grype-scan/**
116117
.grype.yaml

.github/workflows/mcp-container-checks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ jobs:
103103
with:
104104
files: |
105105
mcp_server/**
106+
.trivyignore.yaml
106107
.github/actions/trivy-scan/**
107108
.github/actions/grype-scan/**
108109
.grype.yaml

.github/workflows/sdk-container-checks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- 'Dockerfile*'
1111
- 'pyproject.toml'
1212
- 'uv.lock'
13+
- '.trivyignore.yaml'
1314
- '.github/workflows/sdk-container-checks.yml'
1415
pull_request:
1516
branches:
@@ -116,6 +117,7 @@ jobs:
116117
Dockerfile*
117118
pyproject.toml
118119
uv.lock
120+
.trivyignore.yaml
119121
.github/workflows/sdk-container-checks.yml
120122
.github/actions/trivy-scan/**
121123
.github/actions/grype-scan/**

.github/workflows/ui-container-checks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ jobs:
104104
with:
105105
files: |
106106
ui/**
107+
.trivyignore.yaml
107108
.github/actions/trivy-scan/**
108109
.github/actions/grype-scan/**
109110
.grype.yaml

.grype.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ ignore:
99

1010
# Modules compiled into the Trivy binary we ship.
1111
# Only a Trivy rebuild by its vendor can change these; the version is pinned in our Dockerfile.
12+
# CVE-2026-71556 is the same temporary exception documented in .trivyignore.yaml:
13+
# Trivy 0.73.0 still embeds go-git 5.19.1, while the 5.19.2 fix is merged only on
14+
# Trivy main. Remove this entry with the Trivy exception by 2026-09-15.
15+
# https://github.com/aquasecurity/trivy/blob/v0.73.0/go.mod#L46
16+
# https://github.com/aquasecurity/trivy/commit/a2edba9a03987ba0d2ebc8212c1a9a1e6979497b
17+
- vulnerability: CVE-2026-71556
18+
package:
19+
name: github.com/go-git/go-git/v5
1220
- vulnerability: CVE-2026-56852
1321
package:
1422
name: golang.org/x/text

.trivyignore.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,20 @@ vulnerabilities:
120120

121121
# Modules compiled into the Trivy binary the images ship. The binary is pinned by version
122122
# and verified by checksum in the Dockerfile; only a rebuild by its vendor moves these.
123+
# CVE-2026-71556 affects go-git worktree operations that can follow symlinks outside a
124+
# cloned repository. Trivy 0.72.0 contains go-git 5.19.1, and even the latest published
125+
# Trivy release, 0.73.0, still pins that vulnerable version:
126+
# https://github.com/aquasecurity/trivy/blob/v0.73.0/go.mod#L46
127+
# Trivy main already contains the 5.19.2 fix, but no published release includes it yet:
128+
# https://github.com/aquasecurity/trivy/commit/a2edba9a03987ba0d2ebc8212c1a9a1e6979497b
129+
# Prowler invokes Trivy only with `fs` on an existing local path or with `image`; it does
130+
# not ask Trivy to clone or mutate a Git worktree, so the affected path is not reachable.
131+
# Remove this temporary suppression as soon as a fixed Trivy release is available.
132+
- id: CVE-2026-71556
133+
purls:
134+
- "pkg:golang/github.com/go-git/go-git/v5"
135+
expired_at: 2026-09-15
136+
123137
- id: CVE-2026-56852
124138
purls:
125139
- "pkg:golang/golang.org/x/text"
@@ -140,4 +154,3 @@ vulnerabilities:
140154
purls:
141155
- "pkg:golang/stdlib"
142156
expired_at: 2026-12-31
143-

0 commit comments

Comments
 (0)