Skip to content

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

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/goark/go-cvss/compare/v1.6.6...v1.6.7

v1.6.6

Compare Source

What's Changed

Full Changelog: https://github.com/goark/go-cvss/compare/v1.6.5...v1.6.6

v1.6.5

Compare Source

What's Changed

Full Changelog: https://github.com/goark/go-cvss/compare/v1.6.4...v1.6.5

v1.6.4

Compare Source

What's Changed

Full Changelog: https://github.com/goark/go-cvss/compare/v1.6.3...v1.6.4

v1.6.3

Compare Source

What's Changed

Full Changelog: https://github.com/goark/go-cvss/compare/v1.6.2...v1.6.3

v1.6.2

Compare Source

What's Changed

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

Compare Source

What's Changed

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

Compare Source

What's Changed

Full Changelog: https://github.com/goark/go-cvss/compare/v1.5.0...v1.6.0

v1.5.0

Compare Source

What's Changed

Full Changelog: https://github.com/goark/go-cvss/compare/v1.4.6...v1.5.0

v1.4.6

Compare Source

What's Changed

Full Changelog: https://github.com/goark/go-cvss/compare/v1.4.5...v1.4.6

v1.4.5

Compare Source

What's Changed

Full Changelog: https://github.com/goark/go-cvss/compare/v1.4.4...v1.4.5

v1.4.4

Compare Source

What's Changed

Full Changelog: https://github.com/goark/go-cvss/compare/v1.4.2...v1.4.4

v1.4.2

Compare Source

What's Changed

Full Changelog: https://github.com/goark/go-cvss/compare/v1.4.1...v1.4.2

v1.4.1

Compare Source

What's Changed

Full Changelog: https://github.com/goark/go-cvss/compare/v1.4.0...v1.4.1

v1.4.0

Compare Source

What's Changed

Full Changelog: https://github.com/goark/go-cvss/compare/v1.3.2...v1.4.0

v1.3.2

Compare Source

What's Changed

Full Changelog: https://github.com/goark/go-cvss/compare/v1.3.1...v1.3.2

v1.3.1

Compare Source

What's Changed

Full Changelog: https://github.com/goark/go-cvss/compare/v1.3.0...v1.3.1

v1.3.0

Compare Source

What's Changed

Full Changelog: https://github.com/goark/go-cvss/compare/v1.2.0...v1.3.0

v1.2.0

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/goark/go-cvss/compare/v1.1.0...v1.2.0

v1.1.0

Compare Source

What's Changed

Full Changelog: https://github.com/goark/go-cvss/compare/v1.0.0...v1.1.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Edited by GitLab Dependency Bot

Merge request reports