From 281ca0268dd6972bc96aa375ab916194e6492c6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Vachette?= <5880528+michaelva@users.noreply.github.com> Date: Tue, 24 Dec 2024 10:12:40 +0900 Subject: [PATCH] Fix imagemagick pdf policy on runner --- .github/workflows/maven_build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven_build.yml b/.github/workflows/maven_build.yml index c3ba2e6..1120115 100644 --- a/.github/workflows/maven_build.yml +++ b/.github/workflows/maven_build.yml @@ -38,7 +38,11 @@ jobs: ] - name: Install OS dependencies - run: sudo apt-get -y install ffmpeg exiftool + run: sudo apt-get -y install exiftool + + - name: Change ImageMagick policy to allow pdf->png conversion. + run: | + sudo sed -i 's/^.*policy.*coder.*none.*PDF.*//' /etc/ImageMagick-6/policy.xml - name: Build with Maven run: mvn -B install --file pom.xml -DskipDocker=true