File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 32
32
docker run --name gtfonow_test_${{ matrix.python-version }} -d gtfonow_test:${{ matrix.python-version }}
33
33
34
34
- name : Run Pytest
35
- run : docker exec gtfonow_test_${{ matrix.python-version }} pytest -v
35
+ run : docker exec gtfonow_test_${{ matrix.python-version }} su -l lowpriv -c pytest -v
36
36
- name : Upload coverage reports to Codecov
37
37
uses : codecov/codecov-action@v3
38
38
env :
Original file line number Diff line number Diff line change @@ -18,12 +18,14 @@ def test_check_suid_bins():
18
18
19
19
def test_check_sudo_nopasswd_binaries ():
20
20
sudo_l_output = get_sudo_l_output ()
21
+ print (sudo_l_output )
21
22
res = check_sudo_nopasswd_binaries (sudo_l_output )
22
23
expected = {
23
24
"Binary" : "head" ,
24
25
"Path" : "/usr/bin/head" ,
25
26
"Payloads" : sudo_bins ["head" ],
26
- "Type" : "Sudo NOPASSWD" ,
27
- "SudoUser" : "root"
27
+ "SudoUser" : "root" ,
28
+ "Type" : "Sudo NOPASSWD"
29
+
28
30
}
29
31
assert expected in res
You can’t perform that action at this time.
0 commit comments