fix: Use valid markdown convention for LFP npm

This commit is contained in:
abhisek 2023-12-29 13:15:18 +05:30
parent 4efa6111ed
commit c3b3e2525e
No known key found for this signature in database
GPG Key ID: CB92A4990C02A88F

View File

@ -112,7 +112,7 @@ func (npm *npmLockfilePoisoningAnalyzer) Analyze(manifest *models.PackageManifes
logger.Debugf("npmLockfilePoisoningAnalyzer: Package [%s] resolved to an untrusted host [%s]",
packageName, lockfilePackage.Resolved)
message := fmt.Sprintf("Package [%s] resolved to an untrusted host [%s]",
message := fmt.Sprintf("Package `%s` resolved to an untrusted host `%s`",
packageName, lockfilePackage.Resolved)
_ = handler(&AnalyzerEvent{
@ -140,7 +140,7 @@ func (npm *npmLockfilePoisoningAnalyzer) Analyze(manifest *models.PackageManifes
logger.Debugf("npmLockfilePoisoningAnalyzer: Package [%s] resolved to an unconventional URL [%s]",
packageName, lockfilePackage.Resolved)
message := fmt.Sprintf("Package [%s] resolved to an URL [%s] that does not follow the "+
message := fmt.Sprintf("Package `%s` resolved to an URL `%s` that does not follow the "+
"package name path convention", packageName, lockfilePackage.Resolved)
_ = handler(&AnalyzerEvent{