Skip to content

Commit b7489e4

Browse files
committed
Github actions debugging
1 parent 5618bf2 commit b7489e4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/docker-pytest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
docker run --name gtfonow_test_${{ matrix.python-version }} -d gtfonow_test:${{ matrix.python-version }}
3333
3434
- 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
3636
- name: Upload coverage reports to Codecov
3737
uses: codecov/codecov-action@v3
3838
env:

gtfonow/tests/test_privesc.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ def test_check_suid_bins():
1818

1919
def test_check_sudo_nopasswd_binaries():
2020
sudo_l_output = get_sudo_l_output()
21+
print(sudo_l_output)
2122
res = check_sudo_nopasswd_binaries(sudo_l_output)
2223
expected = {
2324
"Binary": "head",
2425
"Path": "/usr/bin/head",
2526
"Payloads": sudo_bins["head"],
26-
"Type": "Sudo NOPASSWD",
27-
"SudoUser": "root"
27+
"SudoUser": "root",
28+
"Type": "Sudo NOPASSWD"
29+
2830
}
2931
assert expected in res

0 commit comments

Comments
 (0)