Update module github.com/spiegel-im-spiegel/go-cvss to v1.6.7
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
github.com/spiegel-im-spiegel/go-cvss | require | minor |
v1.0.0 -> v1.6.7
|
Release Notes
spiegel-im-spiegel/go-cvss (github.com/spiegel-im-spiegel/go-cvss)
v1.6.7
What's Changed
- docs: fix typo in README.md by @bernhardreiter in https://github.com/goark/go-cvss/pull/38
- Bump up external packages by @spiegel-im-spiegel in https://github.com/goark/go-cvss/pull/39
New Contributors
- @bernhardreiter made their first contribution in https://github.com/goark/go-cvss/pull/38
Full Changelog: https://github.com/goark/go-cvss/compare/v1.6.6...v1.6.7
v1.6.6
What's Changed
- Fixed bug of Calculation of CVSSv2 Environmental score (issue #33) by @spiegel-im-spiegel in https://github.com/goark/go-cvss/pull/36
Full Changelog: https://github.com/goark/go-cvss/compare/v1.6.5...v1.6.6
v1.6.5
What's Changed
- Adjusted calculation error of CVSSv2 Base score (issue #33) by @spiegel-im-spiegel in https://github.com/goark/go-cvss/pull/35
Full Changelog: https://github.com/goark/go-cvss/compare/v1.6.4...v1.6.5
v1.6.4
What's Changed
- Fixed issue #31 and #33 by @spiegel-im-spiegel in https://github.com/goark/go-cvss/pull/34
Full Changelog: https://github.com/goark/go-cvss/compare/v1.6.3...v1.6.4
v1.6.3
What's Changed
- Fixed that no error when misordered CVSSv2 vector string (issue #31) by @spiegel-im-spiegel in https://github.com/goark/go-cvss/pull/32
Full Changelog: https://github.com/goark/go-cvss/compare/v1.6.2...v1.6.3
v1.6.2
What's Changed
- Fix encode CVSSv2 vector string when skip Temporal or Environmental (issue #28) by @spiegel-im-spiegel in https://github.com/goark/go-cvss/pull/30
package main
import (
"fmt"
"github.com/goark/go-cvss/v2/metric"
)
func main() {
testcase := []struct {
name string
vector string
}{
// CVE-2003-0062 (cf. https://www.first.org/cvss/v2/guide 3.3.3)
{name: "full metrics", vector: "AV:L/AC:H/Au:N/C:C/I:C/A:C/E:POC/RL:OF/RC:C/CDP:H/TD:H/CR:M/IR:M/AR:M"},
{name: "Base only", vector: "AV:L/AC:H/Au:N/C:C/I:C/A:C"},
{name: "skip Environmental", vector: "AV:L/AC:H/Au:N/C:C/I:C/A:C/E:POC/RL:OF/RC:C"},
{name: "skip Temporal", vector: "AV:L/AC:H/Au:N/C:C/I:C/A:C/CDP:H/TD:H/CR:M/IR:M/AR:M"},
}
for _, tc := range testcase {
fmt.Println(tc.name)
vec, err := metric.NewEnvironmental().Decode(tc.vector)
fmt.Printf("\t-> vector: %v\n", vec)
fmt.Printf("\t-> err: %v\n", err)
fmt.Printf("\t-> Severity: %v (%v)\n", vec.Severity(), vec.Score())
}
}
Output (https://go.dev/play/p/3ZiGMPBxNY0):
full metrics
-> vector: AV:L/AC:H/Au:N/C:C/I:C/A:C/E:POC/RL:OF/RC:C/CDP:H/TD:H/CR:M/IR:M/AR:M
-> err: <nil>
-> Severity: High (7.5)
Base only
-> vector: AV:L/AC:H/Au:N/C:C/I:C/A:C
-> err: <nil>
-> Severity: Medium (6.2)
skip Environmental
-> vector: AV:L/AC:H/Au:N/C:C/I:C/A:C/E:POC/RL:OF/RC:C
-> err: <nil>
-> Severity: Medium (4.9)
skip Temporal
-> vector: AV:L/AC:H/Au:N/C:C/I:C/A:C/CDP:H/TD:H/CR:M/IR:M/AR:M
-> err: <nil>
-> Severity: High (8.1)
Full Changelog: https://github.com/goark/go-cvss/compare/v1.6.1...v1.6.2
v1.6.1
What's Changed
- Fixed error code if metric.*.Decode method is error (issue #28) by @spiegel-im-spiegel in https://github.com/goark/go-cvss/pull/29
package main
import (
"errors"
"fmt"
"github.com/goark/go-cvss/cvsserr"
"github.com/goark/go-cvss/v2/metric"
)
func main() {
raw := "AV:N/AC:L/Au:N/C:N/I:N/A:C/E:F/RL:OF/RC:C"
vec, err := metric.NewEnvironmental().Decode(raw)
fmt.Printf("err: %v\n", err)
fmt.Printf("vector: %v\n", vec)
switch true {
case errors.Is(err, cvsserr.ErrNoEnvironmentalMetrics):
fmt.Printf("Severity (Temporal): %v (%v)\n", vec.Temporal.Severity(), vec.Temporal.Score())
case errors.Is(err, cvsserr.ErrNoTemporalMetrics):
fmt.Printf("Severity (Base): %v (%v)\n", vec.Base.Severity(), vec.Base.Score())
default:
fmt.Printf("Severity (Environmental): %v (%v)\n", vec.Severity(), vec.Score())
}
}
Full Changelog: https://github.com/goark/go-cvss/compare/v1.6.0...v1.6.1
v1.6.0
What's Changed
- Fixed *.Decode method when not enough metrics (issue ##26) by @spiegel-im-spiegel in https://github.com/goark/go-cvss/pull/27
Full Changelog: https://github.com/goark/go-cvss/compare/v1.5.0...v1.6.0
v1.5.0
What's Changed
- Migrated v2/base to v2/metric package by @spiegel-im-spiegel in https://github.com/goark/go-cvss/pull/25
Full Changelog: https://github.com/goark/go-cvss/compare/v1.4.6...v1.5.0
v1.4.6
What's Changed
- Fixd Metrics.Encode method when value of metric is "ND" (issue #23) by @spiegel-im-spiegel in https://github.com/goark/go-cvss/pull/24
Full Changelog: https://github.com/goark/go-cvss/compare/v1.4.5...v1.4.6
v1.4.5
What's Changed
- Fixed validation of v2 metrics (issue #21) by @spiegel-im-spiegel in https://github.com/goark/go-cvss/pull/22
Full Changelog: https://github.com/goark/go-cvss/compare/v1.4.4...v1.4.5
v1.4.4
What's Changed
- Fix calcuration of Environmental Metrics score (issue #18) by @spiegel-im-spiegel in https://github.com/goark/go-cvss/pull/19
- Fixed test items by @spiegel-im-spiegel in https://github.com/goark/go-cvss/pull/20
Full Changelog: https://github.com/goark/go-cvss/compare/v1.4.2...v1.4.4
v1.4.2
What's Changed
- Fixed validation of CVSSv2 vector string by @spiegel-im-spiegel in https://github.com/goark/go-cvss/pull/17
Full Changelog: https://github.com/goark/go-cvss/compare/v1.4.1...v1.4.2
v1.4.1
What's Changed
- Fixed validation of lowercase characters in CVSS vector string (issue #15) by @spiegel-im-spiegel in https://github.com/goark/go-cvss/pull/16
Full Changelog: https://github.com/goark/go-cvss/compare/v1.4.0...v1.4.1
v1.4.0
What's Changed
- Fix validation of CVSSv3 vector string (issue #13) by @spiegel-im-spiegel in https://github.com/goark/go-cvss/pull/14
Full Changelog: https://github.com/goark/go-cvss/compare/v1.3.2...v1.4.0
v1.3.2
What's Changed
- Fixed name:value validation in CVSS vector string by @spiegel-im-spiegel in https://github.com/goark/go-cvss/pull/12
Full Changelog: https://github.com/goark/go-cvss/compare/v1.3.1...v1.3.2
v1.3.1
What's Changed
- Fixed setting error when "name:value" has no value (issue: #10) by @spiegel-im-spiegel in https://github.com/goark/go-cvss/pull/11
Full Changelog: https://github.com/goark/go-cvss/compare/v1.3.0...v1.3.1
v1.3.0
What's Changed
- Implements CVSSv2 by @luxifer in https://github.com/goark/go-cvss/pull/9
Full Changelog: https://github.com/goark/go-cvss/compare/v1.2.0...v1.3.0
v1.2.0
What's Changed
- Add
Metrics
interface to retrieveBaseMetrics
by @saschagrunert in https://github.com/goark/go-cvss/pull/8
New Contributors
- @saschagrunert made their first contribution in https://github.com/goark/go-cvss/pull/8
Full Changelog: https://github.com/goark/go-cvss/compare/v1.1.0...v1.2.0
v1.1.0
What's Changed
- Migrated repository to github.com/goark/go-cvss by @spiegel-im-spiegel in https://github.com/goark/go-cvss/pull/7
Full Changelog: https://github.com/goark/go-cvss/compare/v1.0.0...v1.1.0
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.