{"version":"2.1.331","anchor":"new-log-file-no-follow-flag","canonical_anchor":"new-log-file-no-follow-flag","heading":"Self-hosted runner gains --log-file-no-follow for safer log files","tier":"use","area":"Self-Hosted Runner","scope":"org","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/new-log-file-no-follow-flag","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Self-hosted runner gains --log-file-no-follow for safer log files\n\nThe new `--log-file-no-follow` option makes the self-hosted runner refuse a `--log-file` that is a symlink or hard link\n\n**Unclear.** What `--log-file-no-follow` does is not clear.\n\n**What**\n\nThe self-hosted runner, the program that runs Claude Code jobs on your own machines, accepts a new option, `--log-file-no-follow`.\n\n- With it set, the file given to `--log-file` is opened by a stricter method. The file must be a regular file with a single name, so symlinks (shortcuts to another file) and hard links (a second name for the same file) are refused.\n\n- A refused file gives an error saying it \"is not a regular file with a single name (it may be a hard link)\".\n\n- Without the option, the log file is opened as before, by appending to it.\n\n**Why**\n\nOn a shared runner, someone could replace the log file with a link so that log output is written into a different file. This option stops that.\n\n- Area: Self-Hosted Runner\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 2\/5\n- Scope: org\n- Heads-up: yes"}