mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
feat: add suppport for bypassing the blocking behavior of malicious packages (#53)
* feat: add suppport for bypassing the blocking behavior of malicious packages * feat: add InsecureInstallation config to bypass malware scanning with tests * ui: introduce ShowWarning interaction method * guard test fix
This commit is contained in:
@@ -105,6 +105,11 @@ func GetConfirmationOnMalware(malwarePackages []*analyzer.PackageVersionAnalysis
|
||||
return false, nil
|
||||
}
|
||||
|
||||
func ShowWarning(message string) {
|
||||
// Print colored warning to stderr immediately - it won't be cleared by other output
|
||||
fmt.Fprintf(os.Stderr, "%s\n", Colors.Red(message))
|
||||
}
|
||||
|
||||
func Fatalf(msg string, args ...interface{}) {
|
||||
ClearStatus()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user