cmd/govulncheck/integration: update k8s expectations
The changes in expectations are due to
https://go-review.git.corp.google.com/c/vulndb/+/462080 and
https://go-review.git.corp.google.com/c/vuln/+/461638.
Change-Id: Ie26626d060532c6cf07d7e028273e8fec8869b42
Reviewed-on: https://go-review.googlesource.com/c/vuln/+/461639
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
diff --git a/cmd/govulncheck/integration/k8s/k8s.go b/cmd/govulncheck/integration/k8s/k8s.go
index c86f738..b0ee83f 100644
--- a/cmd/govulncheck/integration/k8s/k8s.go
+++ b/cmd/govulncheck/integration/k8s/k8s.go
@@ -50,27 +50,31 @@
}
want := map[vuln]bool{
- {"github.com/containernetworking/cni/pkg/invoke", "FindInPath"}: true,
- {"github.com/evanphx/json-patch", "partialArray.add"}: true,
- {"github.com/opencontainers/selinux/go-selinux", "FileLabel"}: true,
- {"github.com/opencontainers/selinux/go-selinux", "GetEnabled"}: true,
- {"github.com/opencontainers/selinux/go-selinux", "SetFileLabel"}: true,
- {"golang.org/x/crypto/cryptobyte", "Builder.AddBytes"}: true,
- {"golang.org/x/crypto/cryptobyte", "Builder.AddUint16LengthPrefixed"}: true,
- {"golang.org/x/crypto/cryptobyte", "Builder.Bytes"}: true,
- {"golang.org/x/crypto/cryptobyte", "NewBuilder"}: true,
- {"golang.org/x/crypto/cryptobyte", "String.Empty"}: true,
- {"golang.org/x/crypto/cryptobyte", "String.ReadASN1"}: true,
- {"golang.org/x/crypto/cryptobyte", "String.ReadOptionalASN1"}: true,
- {"golang.org/x/crypto/cryptobyte", "String.ReadUint16LengthPrefixed"}: true,
- {"golang.org/x/crypto/salsa20/salsa", "XORKeyStream"}: true,
- {"golang.org/x/crypto/ssh", "NewClientConn"}: true,
- {"golang.org/x/crypto/ssh", "NewPublicKey"}: true,
- {"golang.org/x/crypto/ssh", "ed25519PublicKey.Verify"}: true,
- {"golang.org/x/crypto/ssh", "parseED25519"}: true,
- {"golang.org/x/net/http/httpguts", "HeaderValuesContainsToken"}: true,
- {"golang.org/x/net/http2", "Server.ServeConn"}: true,
- {"golang.org/x/text/encoding/unicode", "bomOverride.Transform"}: true,
+ {"github.com/containernetworking/cni/pkg/invoke", "FindInPath"}: true,
+ {"github.com/evanphx/json-patch", "partialArray.add"}: true,
+ {"github.com/opencontainers/selinux/go-selinux", "FileLabel"}: true,
+ {"github.com/opencontainers/selinux/go-selinux", "GetEnabled"}: true,
+ {"github.com/opencontainers/selinux/go-selinux", "SetFileLabel"}: true,
+ {"github.com/prometheus/client_golang/prometheus/promhttp", "flusherDelegator.Flush"}: true,
+ {"github.com/prometheus/client_golang/prometheus/promhttp", "readerFromDelegator.ReadFrom"}: true,
+ {"github.com/prometheus/client_golang/prometheus/promhttp", "responseWriterDelegator.Write"}: true,
+ {"github.com/prometheus/client_golang/prometheus/promhttp", "responseWriterDelegator.WriteHeader"}: true,
+ {"github.com/prometheus/client_golang/prometheus/promhttp", "sanitizeMethod"}: true,
+ {"golang.org/x/crypto/cryptobyte", "Builder.AddBytes"}: true,
+ {"golang.org/x/crypto/cryptobyte", "Builder.AddUint16LengthPrefixed"}: true,
+ {"golang.org/x/crypto/cryptobyte", "Builder.Bytes"}: true,
+ {"golang.org/x/crypto/cryptobyte", "NewBuilder"}: true,
+ {"golang.org/x/crypto/cryptobyte", "String.Empty"}: true,
+ {"golang.org/x/crypto/cryptobyte", "String.ReadASN1"}: true,
+ {"golang.org/x/crypto/cryptobyte", "String.ReadOptionalASN1"}: true,
+ {"golang.org/x/crypto/cryptobyte", "String.ReadUint16LengthPrefixed"}: true,
+ {"golang.org/x/crypto/salsa20/salsa", "XORKeyStream"}: true,
+ {"golang.org/x/crypto/ssh", "NewClientConn"}: true,
+ {"golang.org/x/crypto/ssh", "NewPublicKey"}: true,
+ {"golang.org/x/crypto/ssh", "ParsePrivateKey"}: true,
+ {"golang.org/x/net/http/httpguts", "HeaderValuesContainsToken"}: true,
+ {"golang.org/x/net/http2", "Server.ServeConn"}: true,
+ {"golang.org/x/text/encoding/unicode", "bomOverride.Transform"}: true,
}
if diff := cmp.Diff(want, calledVulns); diff != "" {