Skip to content

Commit 4b3a3d6

Browse files
authored
paretosecurity: 0.0.88 -> 0.0.89 (#391613)
2 parents c1d0a28 + c75a5fa commit 4b3a3d6

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

nixos/tests/paretosecurity.nix

+17-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,25 @@
77
{ config, pkgs, ... }:
88
{
99
services.paretosecurity.enable = true;
10+
11+
users.users.alice = {
12+
isNormalUser = true;
13+
};
1014
};
1115

1216
testScript = ''
13-
(status, out) = machine.execute("paretosecurity check")
14-
assert status == 1, "paretosecurity did not return 1 on failing checks"
17+
machine.succeed(
18+
"su -- alice -c 'paretosecurity check"
19+
20+
# Disable some checks that need intricate test setup so that this test
21+
# remains simple and fast. Tests for all checks and edge cases available
22+
# at https://github.com/ParetoSecurity/agent/tree/main/test/integration
23+
+ " --skip c96524f2-850b-4bb9-abc7-517051b6c14e" # SecureBoot
24+
+ " --skip 37dee029-605b-4aab-96b9-5438e5aa44d8" # Screen lock
25+
+ " --skip 21830a4e-84f1-48fe-9c5b-beab436b2cdb" # Disk encryption
26+
+ " --skip 44e4754a-0b42-4964-9cc2-b88b2023cb1e" # Pareto Security is up to date
27+
+ " --skip f962c423-fdf5-428a-a57a-827abc9b253e" # Password manager installed
28+
+ "'"
29+
)
1530
'';
1631
}

pkgs/by-name/pa/paretosecurity/package.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99

1010
buildGoModule rec {
1111
pname = "paretosecurity";
12-
version = "0.0.88";
12+
version = "0.0.89";
1313

1414
src = fetchFromGitHub {
1515
owner = "ParetoSecurity";
1616
repo = "agent";
1717
rev = version;
18-
hash = "sha256-UVnZhkajrc9q6AZvIU7oi931ugxkiVSPk1NugAERnek=";
18+
hash = "sha256-qZMJFrkHRurUvltDVubyfol5IHKxfyDbNE2XFo/KXF8=";
1919
};
2020

2121
vendorHash = "sha256-HReQu23sHLaxc5N8h2vYv64ruJPmY4HM9whAEKV+3Eo=";

0 commit comments

Comments
 (0)