Skip to content

Commit c837c99

Browse files
committed
Fix deregistration hijacking
1 parent 10b21df commit c837c99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ COPY token.sh entrypoint.sh ephemeral-runner.sh /
2121
RUN chmod +x /token.sh /entrypoint.sh /ephemeral-runner.sh
2222

2323
ENTRYPOINT ["/entrypoint.sh"]
24-
CMD ["/actions-runner/bin/runsvc.sh"]
24+
CMD ["./bin/Runner.Listener", "run", "--startuptype", "service"]

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ if [[ -n "${CONFIGURED_ACTIONS_RUNNER_FILES_DIR}" ]]; then
105105
fi
106106

107107
if [[ ${_DISABLE_AUTOMATIC_DEREGISTRATION} == "false" ]]; then
108-
trap deregister_runner SIGINT SIGQUIT SIGTERM
108+
trap deregister_runner SIGINT SIGQUIT SIGTERM INT TERM QUIT
109109
fi
110110

111111
# Container's command (CMD) execution

0 commit comments

Comments
 (0)