diff --git a/pkg/analyzer/malware.go b/pkg/analyzer/malware.go index a068ff0..2aee3a0 100644 --- a/pkg/analyzer/malware.go +++ b/pkg/analyzer/malware.go @@ -130,7 +130,7 @@ func (a *malwareAnalyzer) Finish() error { // The decision involves: // // - No action if the package is not classified as malware -// - Malware if a verfication record is available to confirm +// - Malware if a verification record is available to confirm // - Malware if `TrustAutomatedAnalysis` config is enabled and confidence is high // - Suspicious for all other cases func (a *malwareAnalyzer) applyMalwareDecision(pkg *models.Package) error { diff --git a/pkg/common/identifier_url.go b/pkg/common/identifier_url.go index 1d958e1..95f7e15 100644 --- a/pkg/common/identifier_url.go +++ b/pkg/common/identifier_url.go @@ -10,7 +10,7 @@ func GetCveReferenceURL(cve string) string { } func GetCweReferenceURL(cwe string) string { - return fmt.Sprintf("https://cwe.mitre.org/data/definitions/%s.html", strings.TrimPrefix(cwe, "CWE-")) // CWE Rquire only the number, ie. CWE-123 -> 123 + return fmt.Sprintf("https://cwe.mitre.org/data/definitions/%s.html", strings.TrimPrefix(cwe, "CWE-")) // CWE Require only the number, ie. CWE-123 -> 123 } func GetGhsaReferenceURL(ghsa string) string { diff --git a/pkg/parser/parser.go b/pkg/parser/parser.go index 236ab04..ec36284 100644 --- a/pkg/parser/parser.go +++ b/pkg/parser/parser.go @@ -103,7 +103,7 @@ var lockfileAsMapByExtension map[string]string = map[string]string{ } // Maintain a map of standard filenames to a custom parser. This has -// higher precendence that lockfile package. Graph parsers discover +// a higher precedence than lockfile package. Graph parsers discover // reference to this map to resolve the lockfileAs from base filename var lockfileAsMapByPath map[string]string = map[string]string{ ".terraform.lock.hcl": customParserTerraform, diff --git a/pkg/parser/pywheel.go b/pkg/parser/pywheel.go index 4ab3d4f..daa344b 100644 --- a/pkg/parser/pywheel.go +++ b/pkg/parser/pywheel.go @@ -13,7 +13,7 @@ import ( ) // The order of regexp is important as it gives the precedence of range that we -// want to consider. Exact match is always highest precendence. We pessimistically +// want to consider. Exact match is always highest precedence. We pessimistically // consider the lower version in the range var pyWheelVersionMatchers []*regexp.Regexp = []*regexp.Regexp{ regexp.MustCompile(`==([0-9\\.]+)`), diff --git a/pkg/reporter/gitlab.go b/pkg/reporter/gitlab.go index e353b78..1057dfd 100644 --- a/pkg/reporter/gitlab.go +++ b/pkg/reporter/gitlab.go @@ -4,7 +4,7 @@ package reporter // This report is same for most of gitlab scanners, types // and schemas. // -// We are using Schema Verison 15.2.1 for dependency_scanning report. +// We are using Schema Version 15.2.1 for dependency_scanning report. // All the versions are available at: https://gitlab.com/gitlab-org/security-products/security-report-schemas import (