slack-orb
slack-orb copied to clipboard
Slack's use of a tmp directory
The code currently creates a working directory within the user/job space rather than somewhere sensible such as /tmp.
The issue is within line 100, which is a very long bash script which contains "LOG_PATH="$(mktemp -d 'slack-orb-logs.XXXXXX')"
I am using that the logic was based on the fact that build agents are considered temporary environments, which are cleared after use - this may not be true for self-hosted runners that can re-use a known file structure.
At the moment I am having to add additional steps to my config.yml to clear up after the slack orb.