internal/database: replace os.MkdirTemp with T.TempDir

Updates [#45402](

Change-Id: I7e14a6923af21fd5ce4979c648734155a3468558
GitHub-Last-Rev: 81004b22c5414997153b951de71ba7783d6dcb1d
GitHub-Pull-Request: golang/vulndb#1508
Reviewed-by: Tatiana Bradley <>
TryBot-Result: Gopher Robot <>
Run-TryBot: Tim King <>
Reviewed-by: Tim King <>
1 file changed
tree: d56d1ec6afe7bd156f1f89e7693c6daff471f3fd
  1. .github/
  2. cmd/
  3. data/
  4. deploy/
  5. devtools/
  6. doc/
  7. internal/
  8. terraform/
  9. webconfig/
  10. .gitignore
  11. all_test.go
  12. checks.bash
  14. go.mod
  15. go.sum
  19. tools_test.go

The Go Vulnerability Database

Go Reference

This repository contains the infrastructure and internal reports to create the Go Vulnerability Database.

If you are interested accessing data from the Go Vulnerability Database, see x/vuln.

Check out for more information about the Go vulnerability management system.

Reporting a vulnerability or feedback

Click here to report a public vulnerability in the Go ecosystem, or give feedback about the project.

Privacy Policy

The privacy policy for govulncheck can be found at


Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.

Database entries are distributed under the terms of the CC-BY-4.0 license. See x/vuln for information on how to access these entries.