Skip to content

Commit 1fd7c32

Browse files
committed
ignore centos CVE-2020-22218
Signed-off-by: Sertac Ozercan <[email protected]>
1 parent ed77375 commit 1fd7c32

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

integration/fixtures/trivy_ignore.rego

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ default ignore = false
66

77
ignore_vulnerability_ids := {
88
# centos 7.6.1810
9-
# bind-license package version "9.11.4-26.P2.el7_9.14" does not exist
10-
"CVE-2023-2828"
9+
# libssh2 package version "1.8.0-4.el7_9.1" does not exist yet
10+
"CVE-2020-22218"
1111
}

integration/patch_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"strconv"
1111
"testing"
1212

13+
"github.com/davecgh/go-spew/spew"
1314
"github.com/opencontainers/go-digest"
1415
"github.com/stretchr/testify/assert"
1516
"github.com/stretchr/testify/require"
@@ -40,6 +41,7 @@ func TestPatch(t *testing.T) {
4041
tmp := t.TempDir()
4142
ignoreFile := filepath.Join(tmp, "ignore.rego")
4243
err = os.WriteFile(ignoreFile, trivyIgnore, 0o600)
44+
spew.Dump(ignoreFile)
4345
require.NoError(t, err)
4446

4547
for _, img := range images {

0 commit comments

Comments
 (0)