Skip to content

Commit

Permalink
Use go-vex merge implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
  • Loading branch information
puerco committed Aug 18, 2023
1 parent 0dd5d9b commit 8e3aeaf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions grype/vex/openvex/implementation.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package openvex

import (
"context"
"errors"
"fmt"
"os"
Expand All @@ -12,7 +11,6 @@ import (
"github.com/anchore/packageurl-go"
"github.com/anchore/syft/syft/source"
openvex "github.com/openvex/go-vex/pkg/vex"
vexctl "github.com/openvex/vexctl/pkg/ctl"
)

type Processor struct{}
Expand All @@ -24,7 +22,7 @@ func New() *Processor {
// ReadVexDocuments reads and merges VEX documents
func (ovm *Processor) ReadVexDocuments(docs []string) (interface{}, error) {
// Combine all VEX documents into a single VEX document
vexdata, err := vexctl.New().MergeFiles(context.Background(), &vexctl.MergeOptions{}, docs)
vexdata, err := openvex.MergeFiles(docs)
if err != nil {
return nil, fmt.Errorf("merging vex documents: %w", err)
}
Expand Down

0 comments on commit 8e3aeaf

Please sign in to comment.