Skip to content

Commit

Permalink
codeql is not making a good impression
Browse files Browse the repository at this point in the history
  • Loading branch information
juliojimenez committed Jan 30, 2021
1 parent 848f0f6 commit 9c8d135
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ go 1.15

replace github.com/devops-kung-fu/go-shs/calculate => ./calculate

require github.com/devops-kung-fu/go-shs/calculate v0.1.0 // indirect
require github.com/devops-kung-fu/go-shs/calculate v0.1.0
12 changes: 12 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package main

import (
"github.com/devops-kung-fu/go-shs/calculate"
"fmt"
)

func main() {
shs := api.NewAPI(api.DefaultConfig())
score := shs.CalculateVectors([]string{"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N"})
fmt.Println(score)
}

0 comments on commit 9c8d135

Please sign in to comment.