diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml
index ff35f7e..98bfc5b 100644
--- a/.github/workflows/deploy.yaml
+++ b/.github/workflows/deploy.yaml
@@ -18,7 +18,7 @@ jobs:
- name: Patch ghostsccript thanks to CVE-2018-16509
run: |
- sed -i '$i' /etc/ImageMagick-6/policy.xml
+ sudo sed -i '$i' /etc/ImageMagick-6/policy.xml
- name: Build
run: |