I'm running a workflow pipeline in GitHub which uses ImageMagick. When I run tests which use ImageMagick on PDF files, I get the following error:
Command failed: convert "/tmp/test.pdf[0]" "/tmp/test-0.png"
convert-im6.q16: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408.
convert-im6.q16: no images defined `/tmp/test-0.png' @ error/convert.c/ConvertImageCommand/3258.
I found the following posts which present a solution
ImageMagick security policy 'PDF' blocking conversion
https://bugs.archlinux.org/task/60580
But as this is ran in GitHub workflow, I was wondering maybe there's a simpler solution?