Skip to content

Commit

Permalink
feat: change oscs default push policy
Browse files Browse the repository at this point in the history
  • Loading branch information
zema1 committed Apr 6, 2023
1 parent 9cbfc49 commit 68c197a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions grab/oscs.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ func (t *OSCSCrawler) ParsePage(ctx context.Context, page, size int) (chan *Vuln

func (t *OSCSCrawler) IsValuable(info *VulnInfo) bool {
// 仅有预警的 或高危严重的
if info.Severity == Critical {
return true
if info.Severity != Critical && info.Severity != High {
return false
}
for _, tag := range info.Tags {
if tag == "发布预警" {
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func init() {
}

var log = golog.Child("[main]")
var Version = "v0.4.0"
var Version = "v0.5.0"

func main() {
golog.Default.SetLevel("info")
Expand Down

0 comments on commit 68c197a

Please sign in to comment.