Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3c7deb5

Browse files
committed
add comment to GHA workflow about ImageMagick security policies
1 parent 32b604c commit 3c7deb5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/main.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ jobs:
4141
texlive-xetex
4242
- name: Build artifacts
4343
run: |
44+
# adjust the ImageMagick policies to convert PDF to PNG
45+
# remove all policies restricting Ghostscript ability to process files
46+
# https://stackoverflow.com/q/52998331
47+
# https://stackoverflow.com/a/59193253
4448
sudo sed -i '/disable ghostscript format types/,+6d' /etc/ImageMagick-6/policy.xml
49+
#
4550
make -C fonts/
4651
cp -r fonts/ /usr/share/fonts/
4752
fc-cache

0 commit comments

Comments
 (0)