How to inspec rendered script (build step) file

I am using Drone version 0.8.6

I am debugging a Drone build step and have a theory my issue may be related to the way in which Drone takes a list of commands and joins them into a shell script; more specifically, how certain shell statements are executed when chaining variable assignments which are separated only by whitespace.

I can see from ps aux that there is a $CI_SCRIPT variable which holds the rendered script, but it is not available in the environment of the container process. Is there any way I can access it? Alternatively, is there any way you can inspect the standard input sent to the container process? (In my case it is an Alpine shell process)