Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Sertac Ozercan <[email protected]>
  • Loading branch information
sozercan committed Oct 24, 2024
1 parent bfecee0 commit ece03d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:
workflow_dispatch:

env:
TRIVY_VERSION: 0.54.1
TRIVY_VERSION: 0.56.1
BUILDKIT_VERSION: 0.16.0

jobs:
Expand Down
3 changes: 2 additions & 1 deletion integration/patch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func TestPatch(t *testing.T) {
img.IgnoreErrors = false
}

// download the trivy db before running the tests
scanner().downloadDB(t)

t.Run(img.Description, func(t *testing.T) {
Expand Down Expand Up @@ -240,7 +241,7 @@ func (s *scannerCmd) downloadDB(t *testing.T) {
"trivy",
"image",
"--download-db-only",
"--db-repository=mcr.microsoft.com/mirror/ghcr/aquasecurity/trivy-db:2",
"--db-repository=ghcr.io/aquasecurity/trivy-db:2,public.ecr.aws/aquasecurity/trivy-db",
}
cmd := exec.Command(args[0], args[1:]...) //#nosec G204
cmd.Env = append(cmd.Env, os.Environ()...)
Expand Down

0 comments on commit ece03d2

Please sign in to comment.