Skip to content

Commit fe6942a

Browse files
committed
force disable secure_path in /etc/sudoers
1 parent 38e96be commit fe6942a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@ jobs:
1212
- name: Setup TeXLive and compile document
1313
uses: xu-cheng/texlive-action@v2
1414
with:
15-
texlive_version: 2023
1615
run: |
1716
apk add file sudo coreutils
1817
chmod +x scripts/install_fonts.sh
19-
echo "PATH=${PATH}"
20-
sudo echo "sudo PATH=${PATH}"
21-
cat /etc/sudoers
18+
sed -i -E '/^Defaults[[:space:]]+secure_path/s/^/# /' /etc/sudoers
19+
echo /etc/sudoers
2220
scripts/install_fonts.sh
2321
cat mtpro2-texlive.sh.log
2422
latexmk -pdf -file-line-error -halt-on-error -interaction=nonstopmode clrs4e-solutions.tex

0 commit comments

Comments
 (0)