File tree Expand file tree Collapse file tree 6 files changed +15
-12
lines changed Expand file tree Collapse file tree 6 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 19
19
20
20
- uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
21
21
with :
22
- go-version : ' 1.19 '
22
+ go-version : " 1.21 "
23
23
check-latest : true
24
24
cache : true
25
25
35
35
36
36
- uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
37
37
with :
38
- go-version : ' 1.19 '
38
+ go-version : " 1.21 "
39
39
check-latest : true
40
40
cache : true
41
41
Original file line number Diff line number Diff line change @@ -16,12 +16,12 @@ jobs:
16
16
- uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
17
17
- uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
18
18
with :
19
- go-version : 1.19
19
+ go-version : 1.21
20
20
check-latest : true
21
21
cache : true
22
22
23
23
- name : golangci-lint
24
24
uses : golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
25
25
with :
26
- version : v1.50.1
26
+ version : v1.54
27
27
args : --timeout=5m
Original file line number Diff line number Diff line change 1
1
module github.com/openvex/go-vex
2
2
3
- go 1.19
3
+ go 1.21
4
4
5
5
require (
6
6
github.com/google/go-cmp v0.5.9
Original file line number Diff line number Diff line change 1
1
github.com/apparentlymart/go-textseg/v13 v13.0.0 /go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo =
2
2
github.com/codahale/rfc6979 v0.0.0-20141003034818-6a90f24967eb h1:EDmT6Q9Zs+SbUoc7Ik9EfrFqcylYqgPZ9ANSbTAntnE =
3
+ github.com/codahale/rfc6979 v0.0.0-20141003034818-6a90f24967eb /go.mod h1:ZjrT6AXHbDs86ZSdt/osfBi5qfexBrKUdONk989Wnk4 =
3
4
github.com/creack/pty v1.1.9 /go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E =
4
5
github.com/davecgh/go-spew v1.1.0 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
5
6
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
@@ -52,6 +53,7 @@ golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBc
52
53
golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU =
53
54
golang.org/x/sys v0.8.0 /go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg =
54
55
golang.org/x/term v0.7.0 h1:BEvjmm5fURWqcfbSKTdpkDXYBrUS1c0m8agp14W48vQ =
56
+ golang.org/x/term v0.7.0 /go.mod h1:P32HKFT3hSsZrRxla30E9HqToFYAQPCMs/zFMBUFqPY =
55
57
golang.org/x/text v0.3.0 /go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ =
56
58
golang.org/x/text v0.3.2 /go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk =
57
59
golang.org/x/text v0.3.5 /go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ =
Original file line number Diff line number Diff line change @@ -23,28 +23,28 @@ func TestMergeDocumentsWithOptions(t *testing.T) {
23
23
require .NoError (t , err )
24
24
25
25
for _ , tc := range []struct {
26
- opts MergeOptions
26
+ opts * MergeOptions
27
27
docs []* VEX
28
28
expectedDoc * VEX
29
29
shouldErr bool
30
30
}{
31
31
// Zero docs should fail
32
32
{
33
- opts : MergeOptions {},
33
+ opts : & MergeOptions {},
34
34
docs : []* VEX {},
35
35
expectedDoc : & VEX {},
36
36
shouldErr : true ,
37
37
},
38
38
// One doc results in the same doc
39
39
{
40
- opts : MergeOptions {},
40
+ opts : & MergeOptions {},
41
41
docs : []* VEX {doc1 },
42
42
expectedDoc : doc1 ,
43
43
shouldErr : false ,
44
44
},
45
45
// Two docs, as they are
46
46
{
47
- opts : MergeOptions {},
47
+ opts : & MergeOptions {},
48
48
docs : []* VEX {doc1 , doc2 },
49
49
expectedDoc : & VEX {
50
50
Metadata : Metadata {},
@@ -57,7 +57,7 @@ func TestMergeDocumentsWithOptions(t *testing.T) {
57
57
},
58
58
// Two docs, filter product
59
59
{
60
- opts : MergeOptions {
60
+ opts : & MergeOptions {
61
61
Products : []
string {
"pkg:apk/wolfi/[email protected] " },
62
62
},
63
63
docs : []* VEX {doc3 , doc4 },
@@ -71,7 +71,7 @@ func TestMergeDocumentsWithOptions(t *testing.T) {
71
71
},
72
72
// Two docs, filter vulnerability
73
73
{
74
- opts : MergeOptions {
74
+ opts : & MergeOptions {
75
75
Vulnerabilities : []string {"CVE-9876-54321" },
76
76
},
77
77
docs : []* VEX {doc3 , doc4 },
@@ -84,7 +84,7 @@ func TestMergeDocumentsWithOptions(t *testing.T) {
84
84
shouldErr : false ,
85
85
},
86
86
} {
87
- doc , err := MergeDocumentsWithOptions (& tc .opts , tc .docs )
87
+ doc , err := MergeDocumentsWithOptions (tc .opts , tc .docs )
88
88
if tc .shouldErr {
89
89
require .Error (t , err )
90
90
continue
Original file line number Diff line number Diff line change @@ -166,6 +166,7 @@ func genTestDoc(t *testing.T) VEX {
166
166
}
167
167
168
168
func TestCanonicalHash (t * testing.T ) {
169
+ //nolint:gosec // Not a credential
169
170
goldenHash := `3edda795cc8f075902800f0bb6a24f89b49e7e45fbceea96ce6061097460f139`
170
171
171
172
otherTS , err := time .Parse (time .RFC3339 , "2019-01-22T16:36:43-05:00" )
You can’t perform that action at this time.
0 commit comments