Skip to content

Commit

Permalink
Workaround ghostscript vunerablilty protection
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Brown committed Apr 11, 2024
1 parent d48db93 commit c3dfd6a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ jobs:
with:
name: rb-cv.pdf
path: ./
- name: Workaround ghostscript vunerability protection
# A vunerabillty that existed in ghostscript no longer exists. This is to work around the temporary protection
# that was put in place.
# https://stackoverflow.com/questions/52998331/imagemagick-security-policy-pdf-blocking-conversion
run: sed -i '/disable ghostscript format types/,+6d' /etc/ImageMagick-6/policy.xml
- name: Run convert command
run: cat /etc/ImageMagick-6/policy.xml
run: convert -density 700 -resize 10% -append -quality 98 -alpha remove rb-cv.pdf rb-cv-thumbnail-p1.jpg

0 comments on commit c3dfd6a

Please sign in to comment.