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:
Sahil Bansal
2025-07-02 19:09:27 +05:30
committed by GitHub
parent 0e17378d3e
commit ca752edf79
7 changed files with 275 additions and 1 deletions
+3
View File
@@ -20,6 +20,9 @@ type Config struct {
// DryRun to check for packages for risks.
// Do not actually execute any commands.
DryRun bool
// InsecureInstallation allows bypassing install blocking on malicious packages
InsecureInstallation bool
}
// Inject config into context while protecting against context poisoning