Merge pull request #32525 from dtzWill/fix/allowInsecurePredicate
fix use of config-specified allowInsecurePredicate
This commit is contained in:
commit
ea1f6c38a2
@ -64,7 +64,7 @@ let
|
|||||||
!allowUnfreePredicate attrs;
|
!allowUnfreePredicate attrs;
|
||||||
|
|
||||||
allowInsecureDefaultPredicate = x: builtins.elem x.name (config.permittedInsecurePackages or []);
|
allowInsecureDefaultPredicate = x: builtins.elem x.name (config.permittedInsecurePackages or []);
|
||||||
allowInsecurePredicate = x: (config.allowUnfreePredicate or allowInsecureDefaultPredicate) x;
|
allowInsecurePredicate = x: (config.allowInsecurePredicate or allowInsecureDefaultPredicate) x;
|
||||||
|
|
||||||
hasAllowedInsecure = attrs:
|
hasAllowedInsecure = attrs:
|
||||||
(attrs.meta.knownVulnerabilities or []) == [] ||
|
(attrs.meta.knownVulnerabilities or []) == [] ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user