File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ UNRELEASED]
9
9
10
+ ## [ 0.7.4] - 2024-06-18
11
+
10
12
### Fixed
11
13
12
14
- Missing ` slog.Error ` for KEV validations
13
15
- Use base EPSS url instead of a specific date to get the latest data
16
+ - Use a * os.File for kev and epss validation to simplify CLI runtime logic
14
17
15
18
## [ 0.7.0] - 2024-05-17
16
19
Original file line number Diff line number Diff line change @@ -52,14 +52,13 @@ var validateCmd = &cobra.Command{
52
52
return nil
53
53
},
54
54
RunE : func (cmd * cobra.Command , args []string ) error {
55
-
56
55
err := gatecheck .Validate (
57
56
RuntimeConfig .gatecheckConfig ,
58
57
RuntimeConfig .targetFile ,
59
58
args [0 ],
60
59
gatecheck .WithEPSSURL (RuntimeConfig .EPSSURL .Value ().(string )),
61
60
gatecheck .WithKEVURL (RuntimeConfig .KEVURL .Value ().(string )),
62
- gatecheck .WithEPSSFile (RuntimeConfig .epssFile ),
61
+ gatecheck .WithEPSSFile (RuntimeConfig .epssFile ), // TODO: fix this
63
62
gatecheck .WithKEVFile (RuntimeConfig .kevFile ),
64
63
)
65
64
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package gatecheck
3
3
import (
4
4
"io"
5
5
"net/http"
6
+ "os"
6
7
7
8
"github.com/gatecheckdev/gatecheck/pkg/epss"
8
9
"github.com/gatecheckdev/gatecheck/pkg/kev"
@@ -15,8 +16,8 @@ type fetchOptions struct {
15
16
kevClient * http.Client
16
17
kevURL string
17
18
18
- epssFile io. Reader
19
- kevFile io. Reader
19
+ epssFile * os. File
20
+ kevFile * os. File
20
21
}
21
22
22
23
func defaultOptions () * fetchOptions {
@@ -56,15 +57,15 @@ func WithKEVURL(url string) optionFunc {
56
57
}
57
58
}
58
59
59
- func WithEPSSFile (r io. Reader ) optionFunc {
60
+ func WithEPSSFile (epssFile * os. File ) optionFunc {
60
61
return func (o * fetchOptions ) {
61
- o .epssFile = r
62
+ o .epssFile = epssFile
62
63
}
63
64
}
64
65
65
- func WithKEVFile (r io. Reader ) optionFunc {
66
+ func WithKEVFile (kevFile * os. File ) optionFunc {
66
67
return func (o * fetchOptions ) {
67
- o .kevFile = r
68
+ o .kevFile = kevFile
68
69
}
69
70
}
70
71
You can’t perform that action at this time.
0 commit comments