Skip to content

Commit

Permalink
fix: missing scan argument
Browse files Browse the repository at this point in the history
  • Loading branch information
mhrabovcin committed Feb 20, 2024
1 parent a9e9608 commit 6b79a5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/actions/copacetic-action/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ go 1.21.5

require (
github.com/aquasecurity/trivy v0.48.3
github.com/go-spectest/markdown v0.0.7
github.com/google/go-containerregistry v0.19.0
github.com/goware/prefixer v0.0.0-20160118172347-395022866408
github.com/spf13/cobra v1.8.0
github.com/stretchr/testify v1.8.4
go.step.sm/crypto v0.42.1
Expand All @@ -22,9 +24,7 @@ require (
github.com/docker/docker-credential-helpers v0.7.0 // indirect
github.com/docker/go-connections v0.4.0 // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/go-spectest/markdown v0.0.7 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/goware/prefixer v0.0.0-20160118172347-395022866408 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/karrick/godirwalk v1.17.0 // indirect
github.com/klauspost/compress v1.16.6 // indirect
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/copacetic-action/pkg/image/copacetic.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func AddLabels(ctx context.Context, patchedRef name.Reference, labels map[string
}

func PatchCVEs(ctx context.Context, imageRef, buildTag, tmpDir string) error {
report, err := Scan(ctx, imageRef)
report, err := Scan(ctx, imageRef, ScanFixableOS)
if err != nil {
return err
}
Expand Down

0 comments on commit 6b79a5b

Please sign in to comment.