Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission problem with inkscape when recompiling with self hosted runner #147

Open
Milokita opened this issue Jun 7, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@Milokita
Copy link

Milokita commented Jun 7, 2024

Problem

With inkscape package installed, the pdf generated from svg would belong to root user, causing the github action can't clean up the temp file from the self-hosted runner.

Github script

 name: Compile LaTeX document
        uses: xu-cheng/latex-action@v3
        with:
          #pre_compile: "latexmk -C"
          root_file: main.tex
          latexmk_use_xelatex: true
          latexmk_shell_escape: true
          texlive_version: 2023
          extra_system_packages: "inkscape"
          continue_on_error: true
          args: "-pdf -file-line-error -interaction=nonstopmode"
          post_compile: "latexmk -c"

Github Action Error log

Error: File was unable to be removed Error: EACCES: permission denied, unlink '/home/a/gh-actions/actions-runner/_work/repo/ssd/svg-inkscape/xxxx_svg-raw.pdf'
@xu-cheng
Copy link
Owner

xu-cheng commented Jun 7, 2024

This comes from the usage of the docker container by this action. For now, you can try to workaround the issue by manually fixing the permission inside the post_compile input or additional github action step. I'm not entirely sure how to fix this. Suggestions or PR are welcome.

@xu-cheng xu-cheng added the help wanted Extra attention is needed label Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants