vegardit / docker-gitea-act-runner

Docker image based on debian:stable-slim to run Gitea's act_runner as a Docker container
https://buymeacoffee.com/vegardit
Apache License 2.0
171 stars 19 forks source link

DinD: Suspicious output #22

Closed Miladiir closed 1 year ago

Miladiir commented 1 year ago
gitea_runner-gitea_act_runner-1  | 2023-07-24 00:37:03 INFO [/opt/run_runner.sh:10] Effective user: uid=1000(act) gid=1000(act) groups=1000(act)
gitea_runner-gitea_act_runner-1  | /opt/run_runner.sh: line 52: deamon: command not found
gitea_runner-gitea_act_runner-1  | /opt/run_runner.sh: line 52: .runner: command not found
gitea_runner-gitea_act_runner-1  | /opt/run_runner.sh: line 52: data: command not found
gitea_runner-gitea_act_runner-1  | /opt/run_runner.sh: line 52: /src: No such file or directory
gitea_runner-gitea_act_runner-1  | time="2023-07-24T00:37:03+02:00" level=info msg="Starting runner daemon"

Looks like something is not escaped properly?

sebthom commented 1 year ago

That is odd I didn't get this in my tests. It should already be fixed. What happens is that the strings in yaml comments of the template surrounded by backticks are evaluated as commands. The bash function doing the string interpolation should not do this.