sync

package
v0.18.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateHash

func CalculateHash(issue jira.Issue) string

CalculateHash assumes the Jira Ticket doesn't have a custom hash field or the field is not mapped in the config tries to gather the info from the rest of the ticket, last resort method of calculating hashes. quite inacurrate

func GetHash

func GetHash(issue jira.Issue, config config.Config) (string, error)

GetHash if a hash field is present in the configuration, use that likely to be more acurrate than calculating it

func UpdateDB

func UpdateDB(hash string, config config.Config, issue jira.Issue, dryRun bool, db db.EnrichDatabase)

UpdateDB updates the dracon vuln db based on the following rules DraconStatus: Resolved -> Delete This allows for regression to be detected again DraconStatus: FalsePositive -> Update to set FalsePositive flag DraconStatus: Duplicate -> Do Nothing

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL